Yeah, I verified multiple times, they're both in the same dir...
So here's the weirdness:
| CopyFile( "handmade.dll" , "handmade_temp.dll", false);
Result.GameCodeDLL = LoadLibraryA( "handmade_temp.dll" );
|
The above returns an error in the watch window:
$err,hr ERROR_FILE_NOT_FOUND : The system cannot find the file specified. unsigned int
BUT this totally works FLAWLESSLY!:
|
//CopyFile( "handmade.dll" , "handmade_temp.dll", false);
//Result.GameCodeDLL = LoadLibraryA( "handmade_temp.dll" );
Result.GameCodeDLL = LoadLibraryA( "handmade.dll" );
|
How can it not find the file specified for CopyFile yet it is able to find it for LoadLibraryA?? (I triple checked it it was getting a fresh dll each time from building).
Any ideas? is this a setting I missed?