Man I feel like an idiot. I searched this sites tutorial section and used the search feature, but didn't find my answer. Frankly I don't know what to Google either.
Simple problem:
My file structure:
Code:
Program.exe (file)
Games (directory)
- SomeFile.dll
My code trying to access SomeFile.dll
Code:
gameLibInst = LoadLibrary("..\\Games\\SomeFile.dll");
The problem is in red. What do I have to do for this to work without typing out the entire path?
I've tried the obvious, but perhaps I'm retarded:
Code:
gameLibInst = LoadLibrary("..\\Games\\SomeFile.dll");
gameLibInst = LoadLibrary(".\\Games\\SomeFile.dll");
gameLibInst = LoadLibrary("\\Games\\SomeFile.dll");
gameLibInst = LoadLibrary("Games\\SomeFile.dll");
gameLibInst = LoadLibrary(".\Games\SomeFile.dll");
etc...etc..