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

前端 未结 3 848
心在旅途
心在旅途 2021-01-24 17:29

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 applicati

3条回答
  •  别那么骄傲
    2021-01-24 18:08

    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.

提交回复
热议问题