Hello,
I have a question about calling function DLLs and the SF7.
Follow, i have a example function wich store in the variable test the value "shark"(string).
Call of DLL function in the SF7.
Local String arg1= "Select the computer server";
Local String computerName= "0";
DLLResult= DLL.CallFunction(compnet.dll, "NameOfComputerServer", "arg1,computerName", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
Follow, i show you the source code of the DLL function.
void NameOfComputerServer(char *msg,char *&test)
{
ShowMessage(msg);
test= new char[6];
strcpy(test,"Shark");
ShowMessage(test);
}
That´s function return by reference one value for the variable test.
I need get that´s value.
I can´t bring this value for to SF7. How am i make this????
If do you have any example for this case please send me.
Thank you!!
Gustavo Pasqualini

