guvencum
asked on
Windows NT and DLL problem
I wrote a DLL in Delphi3 and compiled it under NT
when I run my main program that uses the DLL, it gives me the messsage that "DLL not found c:\winnt;c:\winnt\system;c :\winnt\sy stem32" But in at least one of them DLL exist.
What can be the reason ?
thanks in advance...
when I run my main program that uses the DLL, it gives me the messsage that "DLL not found c:\winnt;c:\winnt\system;c
What can be the reason ?
thanks in advance...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you're declaring a function like this:
function DoYouFeelLuckyPunk: Boolean; stdcall; external 'MYFILE';
then change 'MYFILE' to 'MYFILE.DLL'. Back in the old D1 days, I noticed that you had to supply the extension or the dll was not found. This was only on NT, and was D1. Maybe this is a problem on D3 too?
(BTW: The D3 sources supply the extension)
function DoYouFeelLuckyPunk: Boolean; stdcall; external 'MYFILE';
then change 'MYFILE' to 'MYFILE.DLL'. Back in the old D1 days, I noticed that you had to supply the extension or the dll was not found. This was only on NT, and was D1. Maybe this is a problem on D3 too?
(BTW: The D3 sources supply the extension)
Philip: Actually, you could get away without the extension in D1, but in D2 you suddenly needed to include it (something to do with Win32...)
Cheers,
Raymond.
Cheers,
Raymond.
OK D2 then, it was just a vague memory. But thank you for the correction. Maybe I'll return the favour the next time there is a unicode question eh? Cheers.
Ouch - that hurts :-)
Cheers, Raymond.
Cheers, Raymond.
LoadAndShowDll('C:\Project
:-)
Cheers,
Williams