You cannot return values as string references. That is, string pointers are one-way (in). You could do the following instead:
C code:
Code:
char szReturn[6];
char* NameOfComputerServer(char *msg)
{
ShowMessage(msg);
strcpy(szReturn,"Shark");
ShowMessage(szReturn);
return szReturn;
}
SUF code:
Code:
local larg1= "Select the computer server";
local computerName= "0";
DLLResult= DLL.CallFunction(compnet.dll, "NameOfComputerServer", "\""..larg1..",\""..computerName.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);