Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: %1 not valid win32 application dll


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 23, 2014 7:57 PM Last Post By: Remy Lebeau (Te...
Hafedh TRIMECHE

Posts: 107
Registered: 12/29/06
%1 not valid win32 application dll  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 23, 2014 4:41 AM
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.

var
  H : THandle;
begin
    H := LoadLibrary('devproxy.dll');
   ShowMessage(SysErrorMessage(GetLastError));
   ....
end;
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: %1 not valid win32 application dll  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 23, 2014 7:57 PM   in response to: Hafedh TRIMECHE in response to: Hafedh TRIMECHE
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)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02