Difference between run from complier and .exe?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Difference between run from complier and .exe?

  1. #1
    Join Date
    Apr 2002

    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?

  2. #2
    Join Date
    Mar 2002
    St. Petersburg, Florida, USA
    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

  3. #3
    Join Date
    Mar 2004
    Paris, France
    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.


  4. #4
    Join Date
    Apr 2002
    Thanks ! guys

    The directory is the reason cause my problem. Now I set working directory like you guys suggested, works great!!!

  5. #5
    Join Date
    Jun 2002
    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)