Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21197

SysAllocString

$
0
0
Hi all,

Code:

BSTR tmp = SysAllocString(L"Hello world");
It works! But

Code:

char mystr[] = "Hello world";
BSTR tmp = SysAllocString(mystr);

Does not compile. Any hint?

Thanks,

Cristina

Viewing all articles
Browse latest Browse all 21197

Trending Articles