Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loadstring Fails

8 views
Skip to first unread message

ch...@cbnsystem.com

unread,
Feb 17, 2005, 4:39:46 PM2/17/05
to
Does anyone know why this fails in InstallShield X?

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;

0 new messages