I have create a Com Object with delphi5, and VB6 can not call its method returning BSTR.
I use safecall
if I define the method
Type library Editor
HRESULT _stdcall getString([out, retval] BSTR strValue )
Interface
getString:WideString;safecall;
Implement
getString:WideString;safecall;
the vb6 class browser will crashed when browse the class
if I define the method
Type library Editor
BSTR _stdcall getString( void );
Interface
getString:WideString;safecall;
Implement
getString:WideString;safecall;
it will invoke a access violation error when i call the method.
what is wrong with me? I will highly appreciate your help. thanks.