Using Visual C++ for C++ instead of C++/CLI

2019-03-02 10:59发布

问题:

I know how to program in C++ making console programs, but now I want to code programs with interfaces for Windows. MS VS 2010 makes things easy when coding C++ Windows applications with its drag & drop design system. (.net Framework) However, Visual Studio seems to use C++/CLI, which I'm unfamiliar with.

Is there for an IDE which only uses C++? Is there any good IDE with an easy to use GUI designer, or can I tweak VS 2010 to not to use C++/CLI?

回答1:

Visual C++ is perfectly happy to not use C++/CLI syntax, in fact it works even better without it.

Just set "Use of .NET Framework (/clr)" setting in your project options to "No". Or use the "Win32 Application" wizard when creating your project to begin with.

The "native" version of the Forms Designer is called the Dialog Editor and it works much the same way -- you can select textboxes and buttons and things from a palette and drag where you want them in your window.



回答2:

The best RAD C++ tool, which also happens to accept unmanaged C++ is "CodeGear C++ Builder"



回答3:

How about Qt Creator - IDE for Qt? http://www.qt.io/ide/