Click to See Complete Forum and Search --> : Reference Problem


Vaderman
July 26th, 2005, 05:02 AM
I am developing in VC++ 7.1 and I've created a DLL. This DLL works just fine. However, when I create an executable I try and add the DLL to my exe project as a reference - Reference->Add Reference. But when I try and run it, it fails stating that the DLL cannot be found! :confused:

Any ideas?

Regards

John

thre3dee
July 27th, 2005, 06:14 AM
I am developing in VC++ 7.1 and I've created a DLL. This DLL works just fine. However, when I create an executable I try and add the DLL to my exe project as a reference - Reference->Add Reference. But when I try and run it, it fails stating that the DLL cannot be found! :confused:

Any ideas?

Regards

John
I'm not sure about the Reference thingo, do you have the dll in the same folder as the exe?

Vaderman
July 27th, 2005, 06:17 AM
Yes I do. At the moment, I'm having to copy my DLL file from its debug directory over to the Exe's directory. Of course I can set up a path for the DLL with in the properties of my exe, but I thought I could just add it as a reference, but it doesn't seem to do the trick.

Regards

John