April 6th, 2004, 11:36 AM
Difference between run from complier and .exe?
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?
April 6th, 2004, 12:09 PM
One big difference can be the directory that the program is executing from....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code
outside of [code] ... [/code]
tags. See here
* How NOT
to post a question here
* Of course you read this
carefully before you posted
* Need homework help? Read this first
April 6th, 2004, 12:29 PM
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.
April 6th, 2004, 01:20 PM
Thanks ! guys
The directory is the reason cause my problem. Now I set working directory like you guys suggested, works great!!!
April 6th, 2004, 01:38 PM
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.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!