[RESOLVED] [Need immediate help] How to start work with?
I used MS Visual Studio .Net 2003. I want to know how to start work on C++ source file. I'm confusing with that how to select the project type. I want to test the following simple code.
Code:
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
Re: [Need immediate help] How to start work with?
You want to use the basic Console Application template. It'll create a project for you with one source file called main.cpp. Put your code in there.
chem
1 Attachment(s)
Re: [Need immediate help] How to start work with?
Ok, here what I have done is.
Click File -> New -> Project
From there choose, Win32 Project. After creating the project with a given name,
Click File -> Add New Item and there select C++ file. Put the above code on that file, save it and run. But get the following message.
Re: [Need immediate help] How to start work with?
Strange.. have you checked if the file is actually there? What is VS trying to do.. execute it before its even compiled? What are the folder permissions set to on your machine?
Try rebuilding it, and setting it was a release build. Then, try running the executable from Windows, instead of from the IDE.
chem
Re: [Need immediate help] How to start work with?
I check there, and the file is missing.
I used Microsoft Visual Studio .Net 2003.
Re: [Need immediate help] How to start work with?
If the file is missing, then try a complete rebuild (Build >> Rebuild All). Then see if the file is where its supposed to be (it will be in the Release folder).
chem
Re: [Need immediate help] How to start work with?
Re: [Need immediate help] How to start work with?
Are you sure your code is compiling? There will be no executable there if it doesn't compile properly.
If thats not the problem.. then, upgrade to Visual Studio 2005.
chem
Re: [Need immediate help] How to start work with?
Oops, I found the error. It's a big mistake. I have created a Win32 Project rather than Win32 Console Application.
Anyway thanks for all your comments. Now I'm cool.:wave: