Mega Search
23.2 Million


Sign Up

Make a donation  
%1 not valid win32 application dll  
News Group: embarcadero.public.delphi.nativeapi

devproxy is a 32 bit dll written under delphi XE7.

When running under Windows (x64 & x86) the call successfully completed, but under Windows 8 & 10 64 bits the call generated %1 not valid win32 application.

{code}
var
  H : THandle;
begin
    H := LoadLibrary('devproxy.dll');
   ShowMessage(SysErrorMessage(GetLastError));
   ....
end;
{code}

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 23-Nov-2014, at 4:41 AM EST
From: Hafedh TRIMECHE
 
Re: %1 not valid win32 application dll  
News Group: embarcadero.public.delphi.nativeapi
Hafedh wrote:

> devproxy is a 32 bit dll written under delphi XE7.
> 
> When running under Windows (x64 & x86) the call successfully
> completed, but under Windows 8 & 10 64 bits the call generated
> %1 not valid win32 application.

You cannot load a 32bit DLL into a 64bit process and vice versa, so make 
sure the calling process is 32bit only.

--
Remy Lebeau (TeamB)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-Nov-2014, at 7:57 PM EST
From: Remy Lebeau (TeamB)