Loading dll Library

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've written a program that uses a dll written by someone else. I use the
Declare statement to declare the functions in the dll. My program is
specifically designed to use the dll. My question is this. The dll that I'm
using should already be on the computer that I want to install my program to.
Is there a way to tell my program where the dll is and load it. The Declare
statement requires a string constant but the dll is not always at the same
location on the different computers.
 
* "=?Utf-8?B?c2xhbw==?= said:
I've written a program that uses a dll written by someone else. I use the
Declare statement to declare the functions in the dll. My program is
specifically designed to use the dll. My question is this. The dll that I'm
using should already be on the computer that I want to install my program to.
Is there a way to tell my program where the dll is and load it. The Declare
statement requires a string constant but the dll is not always at the same
location on the different computers.

'Delcare' will find the DLL if it's in
the application's folder,
the current directory,
the system folder,
the Windows folder,
and a folder included in the 'PATH' environment variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top