unable to start program
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: unable to start program

  1. #1
    Join Date
    Sep 2010
    Posts
    1

    unable to start program

    Hello,
    I'm a beginning programmer and I'm trying to compile a simple program but I get the following error:

    "Unable to start program 'C:\Users\mhollida\documents\visual studio 2010\Projects\holaMundo\Debug\holaMundo.exe'.

    The system cannot find the file specified."

    I checked the file path in the error and there was no .exe file there. I did a search from the start menu to see if there was a program by that name anywhere and the search came up empty so I'm assuming that no .exe file was created. I'm not sure why it wouldn't create a .exe file since it said the program was compiled successfully.

    I'm running a program that my professor successfully compiled and ran in class so I don't think it's a problem with the program itself. I'm not sure what information is relevant to solving this problem, so I'll recount exactly what I did:

    1)I opened visual c++ and created an empty project (just like the professor).
    2)I clicked on the "Source Files" folder on the Solution Navigator and created a new C++ class.
    3)I pasted the program into the folder and pressed F7. It then said that the build succeeded.
    4)When I pressed F5 (I also tried Debug--Start Debugging from the top menu) and I got the aforementioned error.

    I'm not sure what to do at this point and I hope this is just some stupid beginner mistake that I'm making that someone can point out.

    Thanks for any information you can give me.

  2. #2
    Join Date
    Aug 2008
    Location
    Scotland
    Posts
    379

    Re: unable to start program

    Hi,

    What you are seeing is normal for an empty project. When you create an empty project, it's exactly that, nothing is included or set up. VS doesn't know whether you're going to create a DLL, a library, an executable or something else. You would need to define all those things yourself, so it's not an easy way to start.

    If you have source code for a program, it will have a main program already defined, something like main(), _tmain(), or WinMain(). Do you have something like that?

    If you just want to create a simple program from scratch, I suggest starting with a Win32 console app rather than an empty project.

    Alan

  3. #3
    Join Date
    Sep 2011
    Posts
    5

    Re: unable to start program

    Am getting the same error. In my program i have WinMain()
    How can i solve the problem. Please help me sort out the problem.

  4. #4
    Join Date
    May 2004
    Location
    45,000FT Above Nevada
    Posts
    1,538

    Re: unable to start program

    Did you try doing a "Rebuild All"
    Jim
    ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

    "The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

    "Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

  5. #5
    Join Date
    Jan 2012
    Posts
    3

    Re: unable to start program

    in this you commented "What you are seeing is normal for an empty project. When you create an empty project, it's exactly that, nothing is included or set up. VS doesn't know whether you're going to create a DLL, a library, an executable or something else. You would need to define all those things yourself, so it's not an easy way to start. "
    my question is how to define all those things. Please elaborate.

  6. #6
    Join Date
    Jan 2012
    Posts
    3

    Re: unable to start program

    hey alanjhd08
    in this you commented "What you are seeing is normal for an empty project. When you create an empty project, it's exactly that, nothing is included or set up. VS doesn't know whether you're going to create a DLL, a library, an executable or something else. You would need to define all those things yourself, so it's not an easy way to start. "
    my question is how to define all those things. Please elaborate.

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,276

    Re: unable to start program

    just use App Wizard to create a new project you need.
    Victor Nijegorodov

  8. #8
    Join Date
    Jan 2012
    Posts
    3

    Re: unable to start program

    i wanna know what all dll,libraries and exe files i have to create for that

  9. #9
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,276

    Re: unable to start program

    Quote Originally Posted by carlitobrigante View Post
    i wanna know what all dll,libraries and exe files i have to create for that
    Create for what?
    You haven't described your *own* problem yet. What exactly would you like to do? What type of project are you trying to create or dealing with?
    Victor Nijegorodov

Tags for this Thread

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