C++ dll help

revolupowered

New Member
Messages
4
Reaction score
0
Points
0
I'm in the process of making a Multi-player module for a space simulator called orbiter.

how do tell my program to look in a directory for my DLL, at the moment it loads in the same folder as the .exe, I need to change this. I'm using Implicit Linking.



Home: http://surgesoft.x10hosting.com/


Thanks :wink:
 

spadija

New Member
Messages
48
Reaction score
1
Points
0
It's hard to tell exactly what you are trying to do and how you are trying to do it without some code, but you could try using relative paths. If that doesn't work, you could try finding the absolute path to the DLL by appending the relative path to the working directory.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
The folders MS Windows searches a DLL for are listed in "Search Path Used by Windows to Locate a DLL". One thing you can do is set the current directory in the shortcut used to launch the executable. If the DLL isn't in any of the locations listed in the "Search Path" document, you'll have to either place it in one or switch to explicit linking.
 
Top