I want to know how to point VS 2008 (or 2005) to a custom DLL path:
1. I create a DLL (my.dll) for common symbols, helper functions.
2. I put the dll in C:\mydlls and add that path to the system PATH variable.
3. I create an application to use that dll. It launches fine when OUTSIDE of VS (i.e. exe is double-clicked).
4. It fails to launch when I hit 'Start Debugging' OR 'Start Without Debugging' in VS 2008 with the error 'failed to start because my.dll was not found...'.
5. I added the dll path to the VC++ Directories (I tried Executable, Include, Library, Reference, Source) under Tools | Options and it did NOT fix the problem.
6. One way to fix it is to put the dll in c:\windows\system32.
So I need to know how I can modify the DLL path for Visual Studio. It obviously has 'c:\windows\system32' in there already... how/can I add 'c:\mydlls'. I would rather keep them in 1 directory rather than have multiple versions, etc. I do NOT want to have to copy it into the Debug/Release folder of the app I'm working on, that is just dumb.
BTW I am loading the DLL implicitly, NOT explicitly using LoadLibrary. I use the functions throughout the code so I think this is best (rather than a one and done scenario).
Start Free Trial