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:
My code trying to access SomeFile.dllCode:Program.exe (file) Games (directory) - SomeFile.dll
The problem is in red. What do I have to do for this to work without typing out the entire path?Code:gameLibInst = LoadLibrary("..\\Games\\SomeFile.dll");
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..



LinkBack URL
About LinkBacks


