How to use DLLs
-
Hello, I need to use a dll file (that I downloaded from the net) in my MFC VC++ application, but I am new to dll's and VC++ and don't know where to start. I was hoping that someone knew of a document that I could read that would show me how to do this. Thanks, Aoife
-
Hello, I need to use a dll file (that I downloaded from the net) in my MFC VC++ application, but I am new to dll's and VC++ and don't know where to start. I was hoping that someone knew of a document that I could read that would show me how to do this. Thanks, Aoife
What kind of a DLL you have downloaded, and how do you intend to use that..
-
Hello, I need to use a dll file (that I downloaded from the net) in my MFC VC++ application, but I am new to dll's and VC++ and don't know where to start. I was hoping that someone knew of a document that I could read that would show me how to do this. Thanks, Aoife
Typically, the DLL is going to come with a header file and an import library. 1) Simply include the header file where you need to - either in the file that will be references any of the DLL's exported types or functions) or in the stdafx.h file 2) Add the import library to the project. 3) Place the DLL in one of the following folders (This is the order windows searches for DLLs) The current folder The Windows folder The Windows system folder The folder where the main application is being run from The folders listed in the PATH environment variable A mapped network folders Let me know if you need any more help. Cheers, Tom Archer Author, Inside C# Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
-
Hello, I need to use a dll file (that I downloaded from the net) in my MFC VC++ application, but I am new to dll's and VC++ and don't know where to start. I was hoping that someone knew of a document that I could read that would show me how to do this. Thanks, Aoife
If the DLL doesn't come with an import lib, you can get at an exported function by using
GetProcAddress()
. However, you'll still need a .h file that describes the function's prototype. /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com