BSTR类型的dll返回值在的Delphi中对应什么类型的变量?求教
这个没有回哈? 是 WideString
string
WIDEString
o, bstr 是自生存管理的, 返回时要作个记数 + 1, dll 有问题吧
ding
char
PChar
widestring
---------------------------------------
The WideString type represents a dynamically allocated string of 16-bit Unicode characters. In most respects it is similar to AnsiString.
On Win32, WideString is compatible with the COM BSTR type. Borland development tools have support features that convert AnsiString values to WideString, but you may need to explicitly cast or convert your strings to WideString.
PCHAR
晕哦,怎么这么多人说是PCHAR?
难不成widestring和PCHAR是一个东东?