Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.06.20;
Скачать: CL | DM;

Вниз

StringToWideChar   Найти похожие ветки 

 
gyry   (2004-06-04 00:07) [0]

Покажите пример как перевести строку с типа PWideChar
в тип Strings с помощью команды StringToWideChar.


 
rrew   (2004-06-04 00:11) [1]

function OleStrToString(Source: PWideChar): string;

почаще нажимай F1!!! :)


 
rrew   (2004-06-04 00:19) [2]

сорри, не дочитал


 
gyry   (2004-06-04 00:19) [3]

Извиняюсь я неправильно задал вопрос.
Надо наоборот Strings -> PWideChar.


 
Игорь Шевченко ©   (2004-06-04 00:27) [4]

procedure TFSDDirectoryHelper.Open(const DeviceName: string);
var
 NameBuffer: array[0..255] of WideChar;
 InternalDeviceName: string;
 Status: NTSTATUS;
begin
 if FHandle <> INVALID_HANDLE_VALUE then
   Close;
 InternalDeviceName := Format("\Device\%s\", [DeviceName]);
 Status := InternalOpen(StringToWideChar(InternalDeviceName,
   NameBuffer, SizeOf(NameBuffer)
), FILE_READ_ATTRIBUTES or FILE_READ_EA);
 if not NT_SUCCESS(Status) then
   RaiseNtError(Status);
end;



Страницы: 1 вся ветка

Текущий архив: 2004.06.20;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.022 c
1-1086216041
hiperLogun
2004-06-03 02:40
2004.06.20
XP Menu


3-1085377603
den_777
2004-05-24 09:46
2004.06.20
Работа уникальными значениями


3-1085502140
Kein
2004-05-25 20:22
2004.06.20
переход с IBX на FIBPlus


1-1086265785
han
2004-06-03 16:29
2004.06.20
Variant


3-1085658120
lehich
2004-05-27 15:42
2004.06.20
заголовки таблиц