要学习的最佳MS VS 2010 C ++目标版本? [英] Best target version of MS VS 2010 C++ to learn?

查看:100
本文介绍了要学习的最佳MS VS 2010 C ++目标版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨-我有兴趣更新自己的C ++技能并拥有Microsoft Visual Studio 2010的副本.我主要有兴趣编写相当简单的过程,以使我可以从命令行调用可执行文件或其他程序可以处理基于文件的数据,但是如果性能足够的话我可能会考虑通过套接字传递数据.

我应该针对项目的多个版本中的哪个版本?考虑到我的适度要求,我假设我在"Win32控制台应用程序","CLR控制台应用程序","Win32项目"或"MFC DLL"之间进行选择.

我看到的主要区别是,当我从诸如此类的有用资源中获取代码片段时,基于CLI的代码的示例似乎更少了.

Hi - I''m interested in updating my C++ skill and have a copy of Microsoft''s Visual Studio 2010. I''m mostly interested in writing fairly simple procedures to give me executables to be called from the command line or another program to work on file-based data, though I might consider passing data through sockets if the performance seems adequate.

Which of the many versions of a project should I target? I''m assuming my choices are between "Win32 Console Application", "CLR Console Application", "Win32 Project", or possibly "MFC DLL" given my modest requirements.

A major difference I see is that, as I''m getting pieces of code from useful resources like this one, there seems to be fewer examples for CLI-based code.

推荐答案

您混合使用了非常不同的平台和不同的语言的应用程序类型.

CLR应用程序:平台:CLR(.NET),语言:C ++/CLI,与C ++完全不同.

您列表中的所有其他应用程序类型:本机Windows平台,语言:C ++.

所以首先,选择一个平台.

对于初学者而言,最好学习所有与控制台应用程序,CLR或Win32一起使用的语言和基本平台,具体取决于您选择的平台或语言.我建议您在真正适应之前不要转移到其他应用程序类型.特别是,如果您正在使用有关该语言的书,我建议您继续使用控制台,直到从头到尾阅读所有这本书,并在每一章中进行必要的练习.

祝你好运,
—SA
You mix up application types for very different platforms and different languages.

CLR Application: platform: CLR (.NET), language: C++/CLI, which is very different from C++.

All other application types from your list: native Windows platform, language: C++.

So first, choose a platform.

For a beginner, it''s the best to learn all the language and basic platform use with console application, CLR or Win32, depending on your choice of platform or language. I would advise you not to move to other application type until you are really comfortable. In particular, if you are using some book on the language, I would recommend you to stay with console until you read all the book from the beginning to the very end and do essential exercises form every chapter.

Good luck,
—SA


如果您是刚入门,那么我建议您坚持使用普通" C ++,而不要使用CLI,直到您对这种语言感到满意为止.如果只希望从命令行运行代码,则 Win32控制台应用程序应该是您的首选应用程序.如果您满意,可以继续进行Windows编程,MFC和DLL.
If you are starting out then I would suggest you stick to ''plain'' C++ and forget about CLI until you are comfortable with the language. If you only want code that runs from the command line then Win32 Console Application should be your app of choice. When you are happy with that you can move on to Windows programming, MFC and DLLs.


Win32控制台:如果您不需要UI,则为基本C/C ++.
Win32:如果需要UI(基本Win32)
MFC EXE:如果需要MFC UI.
CLR控制台:如果要使用.net

MFC DLL:如果要创建DLL(不是可执行文件).

例如AFAIK的示例和示例,那里的CLI程序员很少(如果人们想做.net,他们只会更改为C#).
Win32 Console : basic C/C++ if you do not want UI.
Win32 : if you want UI (basic win32)
MFC EXE : if you want MFC UI.
CLR Console : if you want to use .net

MFC DLL : if you want to create DLL (not an executable).

As for example and samples, AFAIK, there are just fewer CLI programmers out there (if people want to do .net they will simply change to C#).


这篇关于要学习的最佳MS VS 2010 C ++目标版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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