Solved

Can't find my DLL when running in NT

Posted on 1997-08-05
3
210 Views
Last Modified: 2010-04-04
I've written an application that, in addition to the main EXE, also calls routines in a DLL that I wrote.  During execution, I store the DLL in the same folder as the EXE.  BTW, I also include the delphimm.dll to handle memory issues (the routines are functions that return values).

When I run the program under Win 95, there's no problem.  However, I've just installed the same application with the same folder structure on two different Win NT (4.0: one workstation, one server) systems and each complained that it couldn't find my home-grown DLL, even tho it was right there to be found.  I even moved copies of the DLL into the WINNT, WINNT\SYSTEM, and WINNT\SYSTEM32 folders, and still no go.

When I removed the delphimm.dll file, it complained about that before my own routine, and when I restored it, it went back to complain about not finding my DLL.

So, what do I need to do to make my program work under NT and find the DLL?

Thanx for any help.
0
Comment
Question by:nrosenblatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:jorgen.hojdmo
ID: 1340650
How do you access the dll? Do you load it with the winAPI or do you use something like this?
procedure DoSomething; stdcall; external 'TheDLL.dll';

the latter works fine for me!


0
 
LVL 1

Accepted Solution

by:
jturpin earned 100 total points
ID: 1340651
I had a similar problem in WinNT. I fixed it by ensuring
the extension "DLL" was in my code like:
      procedure SomeRoutine; external 'MyDll.dll';

0
 

Author Comment

by:nrosenblatt
ID: 1340652
Yes, adding the ".DLL" to the name of the routine in the code did the trick.  While I'm tempted to wonder why this is, I'm more tempted to leave well enough alone and get on with life.

Thanx again.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question