March 2000
Intermediate to advanced
576 pages
18h 13m
English
StringToWideChar Function
function StringToWideChar(const Str: string; Result: PWideChar;
Size: Integer): PWideChar;The
StringToWideChar
function converts
Str to a wide string. It copies at most
Size-1 characters from Str to
Result, appending #0 to the
result string. It returns a pointer to Result.
StringToWideChar is a real function.
procedure Demo;
var
OleStr: PWideChar;
begin
GetMem(OleStr, (Length(S)+1) * SizeOf(WideChar));
try
StringToWideChar(S, OleStr, Length(S)+1);
SomeOLEProcedure(OleStr);
finally
FreeMem(OleStr);
end;
end;| OleStrToString Function, OleStrToStrVar Procedure, PWideChar Type, String Keyword, WideChar Type, WideCharLenToString Function, WideCharLenToStrVar Procedure, WideCharToString Function, WideCharToStrVar Procedure, WideString Type |
Read now
Unlock full access