ikcha
September 17th, 2007, 02:37 PM
this exported works in vb6. it probably works in c++ if <windows.h> is included. is it possible to make it work in c++ Exe without <windows.h>.
BSTR __declspec(dllexport) CALLBACK StringTest(BSTR StrVal)
{
char Str[100];
//fill Str with StrVal, do other things
char *Ret = Str;
return SysAllocString((BSTR)Ret);
}
BSTR __declspec(dllexport) CALLBACK StringTest(BSTR StrVal)
{
char Str[100];
//fill Str with StrVal, do other things
char *Ret = Str;
return SysAllocString((BSTR)Ret);
}