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
    Posts
    248

    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
    Location
    NY, USA
    Posts
    12,097
    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
    In theory, there is no difference between theory and paractice; 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
    Location
    Paris, France
    Posts
    15
    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

  4. #4
    Join Date
    Apr 2002
    Posts
    248
    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
    Posts
    395
    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center