I build my project in Release. It's ok to start application from VC++, but when I double click release version .exe, it gave me error like "error occured #15 -> file missing",
what's difference between run from complier and run .exe directly?
Printable View
I build my project in Release. It's ok to start application from VC++, but when I double click release version .exe, it gave me error like "error occured #15 -> file missing",
what's difference between run from complier and run .exe directly?
One big difference can be the directory that the program is executing from....
You can check the project's settings for the << Debugging >> category, in which you can set a working directory. Projects are not defaulted to the Output directory, but you can easily input $(OutDir) which should be what you need (provided your output directory matches with your exe final location). You can put any directory here.
Regards,
Birdy
Thanks ! guys
The directory is the reason cause my problem. Now I set working directory like you guys suggested, works great!!!
One of my biggest peeves is software that produces messages like
"error occured #15 -> file missing"
but doesn't tell you *which* file it couldn't find. :sick: