1. Type your main program and save the file in a directory.
2. Create the project file in Visual C++.
a. File. New...
b. Win32 Application. Click Next.
c. A new window will open with properties for your new project. Select "An empty project" and click finish.
3. Add your program file to your new project. Either right-click on the source code and choose Insert File into Project, or add it through the Project Menu. Choose Add to Project and then Files...
4. After adding the file, compile and build the application and you shouldn't have a problem with an unresolved external _main error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.