How do I create a native application using Visual

2020-04-24 11:00发布

问题:

I am getting started in C++. How can I setup Visual Studio 2008 to create native (not managed) code?

回答1:

Choose a Win32 Project.



回答2:

If you're just getting started you probably want a Win32 Console Application, and not a Win32 App. File -> New -> Project -> Visual C++ -> Win32 -> Win32 Console Application

When you create the project itself you'll probably want to click Next before you click Finish, and select Empty Project so that VS won't add a bunch of junk to your project for you.



回答3:

File -> New -> project (maybe go to other lang if you see c#) -> visuall c++ -> win32

You can choose other types there it still be native.

(like mfc, but I doubt if you really need something other then the basic win32)



回答4:

In the new projects dialog, choose any project type under the Visual C++ group. You'll need Visual Studio Pro, or Visual Studio Express for C++.