-
April 6th, 2004, 10:36 AM
#1
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, 11:09 AM
#2
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!)
2008, 2009,2010
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 for instructions
* 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, 11:29 AM
#3
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
-
April 6th, 2004, 12:20 PM
#4
Thanks ! guys
The directory is the reason cause my problem. Now I set working directory like you guys suggested, works great!!!
-
April 6th, 2004, 12:38 PM
#5
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|