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>.
Code:BSTR __declspec(dllexport) CALLBACK StringTest(BSTR StrVal) { char Str[100]; //fill Str with StrVal, do other things char *Ret = Str; return SysAllocString((BSTR)Ret); }




Reply With Quote