I am using a custom action which calls a standard dll. The DLL returns a string which sets a property. But the DLL is crashed.
The fuction prototype of the DLL looks as follows:
extern "C"
LPSTR WINAPI MyFunction()
What's wrong with this?
If I try the following:
extern "C"
void WINAPI MyFunction(LPSTR& property)
The DLL won't crash, but the property (which I specify as an inout String) couldnot be set correctly.
Can anyone advise me the right way to return a string value of a standard dll to be called by a custom action?
Thanks,
Josephine