无法理解正常的c ++与vc ++,win32编程,mfc,win32 api,CLI之间的关系 [英] Cannot understand relationship between normal c++ vs vc++, win32 programming, mfc, win32 api, CLI

查看:126
本文介绍了无法理解正常的c ++与vc ++,win32编程,mfc,win32 api,CLI之间的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 什么是mfc,cli和win32?你能帮助我理解视觉工作室如何与这些2的关系吗?

  2. c ++和vc ++之间的区别是什么?

  3. 如果我在Visual C ++中创建了一个基于控制台的应用程序,而不使用任何win32编程,那么我们说vc ++会隐含对话框,窗体,窗口和其他gui元素

  4. 做盒子,对话框,表单和其他gui,是在win32编程下还是不同的?


  1. What is the mfc, cli and win32? Can you please help me understand how visual studio works in relationship with these 2?
  2. what is the diff between c++ and vc++? When we say "vc++" does it imply the dialog boxes, forms, windows and other gui elements by default?
  3. If i create a console based application in visual c++, without using any win32 programming, does it qualify as a visual application?
  4. Do the boxes, dialog boxes, forms and other gui, come under win32 programming or are they different?
  5. What other kinds of programming are there in c++ other than console based and win32 programming?

请尽可能简单。

推荐答案

C ++是一种编程语言。它被编译,这意味着你需要一个编译器将源代码翻译成可执行程序。

C++ is a programming language. It's compiled, which means you need a compiler to translate the source code into an executable program.

VC ++是Microsoft的编译器,在MS Windows上运行,并将C ++代码编译为MS Windows操作系统的可执行程序。

VC++ is a compiler from Microsoft which runs on MS Windows, and compiles C++ code into executable programs for MS Windows operating system.

有多种类型的程序可以用C ++编写,从设备驱动程序到webbrowser插件。好吧,你甚至可以编写自己的操作系统,如果你想那样。

There are various kinds of programs that you can write in C++, ranging from device drivers to webbrowser plugins. Well, you could even write your own operating system if you fancy that.

为了方便开发,编译器开发者(和第三方)编写了各种有用的库。 MFC是一个库(一个更精确的框架)的例子,它帮助您在MS Windows上的视觉应用程序的开发。

To ease your development, compiler developers (and third parties) have written various kinds of useful libraries. MFC is an example of a library (a framework to be more precise), which helps you in development of "visual applications" on MS Windows. There are other alternatives to MFC in the market.

现在回答您的问题:


  1. MFC是Microsoft在Visual C ++中创建可视化应用程序的框架。 CLI是命令行界面。 CLI应用程序通常没有任何可视元素,除了命令行输入---他们大多没有任何菜单和鼠标交互。 Win32是32位MS Windows应用程序的通用术语。您也可以为64位Windows开发。

  1. MFC is Microsoft's framework for creating visual applications in Visual C++. CLI is command line interface. CLI applications typically don't have any visual element except for the command line input---they mostly don't have any menus and mouse interaction, either. Win32 is a generic term for 32 bit MS Windows application. You could also develop for 64 bit Windows.

C ++是一种语言。 VC ++是一个编译器。这个编译器附带了一些额外的功能,超出了C ++中的特性,特别是通过MFC来简化MS Windows开发。

C++ is a language. VC++ is a compiler. This compiler comes with some additional features, beyond what's available in C++ to ease MS Windows development, specially via MFC.

没有标准术语应用程序,但松散地说,没有图形元素,您的应用程序将不会被视为可视应用程序。

There is no standard term as a "visual application" but loosely speaking, without graphical elements your application won't be considered a visual application.

对话框,表单和其他GUI元素来自Win32编程。

Dialog boxes, forms and other GUI elements do come under Win32 programming. You could make use of MFC to ease your development of such Win32 applications, as hinted earlier.

超越基于控制台和Win32编程:我想你很困惑因为当您在IDE中创建一个新的C ++项目时,Visual Studio提供了各种向导。在您的安装中可能配置了几种类型的向导;只是给你几个例子:你也可以有ActiveX和MFC控件作为你想要创建的类型的应用程序。

Beyond console based and Win32 Programming: I think you are getting confused because of the various "wizards" that come with Visual Studio when you create a new C++ project in the IDE. There could be several types of wizard configured in your installation; just to give you a few examples: you could also have ActiveX and MFC controls as the "type of application" you want to create.

这篇关于无法理解正常的c ++与vc ++,win32编程,mfc,win32 api,CLI之间的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆