Board index » delphi » DLL Load Error Under Windows NT/2000

DLL Load Error Under Windows NT/2000

I've been given an app written in Delphi 3 that I cannot upgrade to D5
due to custom controls and time constraints.  I've made some code
changes according to what my company needs.

Here's the problem: Under Windows NT and Windows 2000, upon running the
main executable, I get an "unable to load DLL" error.

There are 5 external DLLs (also written in Delphi) that are staticly
linked.  Under Win95/98/Me the app runs fine.  I've copied the DLLs
into the same directory as the executable under NT and same thing... it
can't find the DLLs.

Does anyone have any ideas what's happening and how to fix it?

Thanks in advance.

Sent via Deja.com
http://www.deja.com/

 

Re:DLL Load Error Under Windows NT/2000


- sorry for poor english -

open a text console.  (run :    cmd)

try to use regsvr32 to register these dll :

regsvr32  the_dll_that_is_not_found.dll

may be you 'll need to type the dll_name with the full path name
if another dll having the same name exists elsewhere in your PC.

or

 try to add the path of your application in your %PATH%

May this help you...

Regards - Philippe

<orpheu...@my-deja.com> a crit dans le message news:
91vne8$7l...@nnrp1.deja.com...

Quote
> I've been given an app written in Delphi 3 that I cannot upgrade to D5
> due to custom controls and time constraints.  I've made some code
> changes according to what my company needs.

> Here's the problem: Under Windows NT and Windows 2000, upon running the
> main executable, I get an "unable to load DLL" error.

> There are 5 external DLLs (also written in Delphi) that are staticly
> linked.  Under Win95/98/Me the app runs fine.  I've copied the DLLs
> into the same directory as the executable under NT and same thing... it
> can't find the DLLs.

> Does anyone have any ideas what's happening and how to fix it?

> Thanks in advance.

> Sent via Deja.com
> http://www.deja.com/

Re:DLL Load Error Under Windows NT/2000


Quote
On Fri, 22 Dec 2000 14:11:23 GMT, orpheu...@my-deja.com wrote:
>I've been given an app written in Delphi 3 that I cannot upgrade to D5
>due to custom controls and time constraints.  I've made some code
>changes according to what my company needs.

>Here's the problem: Under Windows NT and Windows 2000, upon running the
>main executable, I get an "unable to load DLL" error.

>There are 5 external DLLs (also written in Delphi) that are staticly
>linked.  Under Win95/98/Me the app runs fine.  I've copied the DLLs
>into the same directory as the executable under NT and same thing... it
>can't find the DLLs.

>Does anyone have any ideas what's happening and how to fix it?

>Thanks in advance.

I'd suspect that whoever wrote the code using the DLL didn't place
".DLL" when specifying the DLL file.

It isn't necessary under Win95/98 but is under WinNT.

Michael

Other Threads