It gets the handle okay but returns an empty string.
The same function works in both delphi and C++.
Thanks in advance.
#include "ifx.h"
export prototype GetString(HWND);
function GetString(hMSI)
STRING szDLLPath, szDLLName, szString;
NUMBER nResult;
HWND hIsUser;
begin
szDLLPath = "C:\\Development";
szDLLName = "MyRes.dll";
hIsUser = UseDLL(szDLLPath ^ szDLLName);
if hIsUser = 0 then
nResult = LoadString(hIsUser, 8000, szString, 1024);
MessageBox ( szString, INFORMATION );
endif;
UnUseDLL ( szDLLName );
end;