So here's the weirdness:
1 2 | 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!:
1 2 3 4 | //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?