If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

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.

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.

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.

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.