Windows with C ++-从哪里开始? [英] Windows with C++ - where to start?

查看:113
本文介绍了Windows with C ++-从哪里开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在大多数项目中都使用C#,这只是因为它使使用Windows变得尽可能容易.我喜欢C ++,希望我能找到一个很好的起点来学习如何管理Win32 API.我已经考虑过将C ++与Windows窗体一起使用,但是我的主要兴趣是摆脱.NET框架并转到本机代码.

我研究了Win32教程,他们似乎认为您想要做的就是创建一个没有控件的单一窗口.我只是想知道在Windows中过渡到C ++的最佳方法是什么.

I''m currently using C# for a majority of my projects only because it makes working with Windows as easy as can be. I love C++ and wish I could find a good starting point to learn how to manage the Win32 API. I''ve considered using C++ with Windows Forms, but my main interest is to get away from the .NET framework and go to native code.

I''ve looked into Win32 tutorials and they seem to think all you ever want to do is make a single window with no controls on it. I was just wondering what the best way would be for me to transition to C++ in Windows.

推荐答案

我推荐两本书:

Charles Petzold撰​​写的"Programming Windows"第5版.这详细说明了如何使用C语言编写Windows程序.如果您是一位自信的C ++程序员,那么您将从本书中获得足够的收益,来研究如何将Win32 API折叠成您喜欢的东西.

Paul DiLascia撰写的"Windows ++".这告诉您如何用C ++编写Windows应用程序框架.它已经很老了,所以谈论不重要的事情,但是您会很好地了解在Windows上使用C ++的一种方法.这也是如何使用Petzold中的内容的更多示例.

干杯,

Two books I''d recommend:

"Programming Windows" 5th edition, by Charles Petzold. This details how Windows programs in C are written. If you''re a confident C++ programmer you''ll get enough out of this book to work out how to fold the Win32 API into something you like.

"Windows++" by Paul DiLascia. This tells you how to write an application framework for Windows in C++. It''s very old so talks about things that aren''t important but you''ll get a good idea of one way of using C++ with Windows. It''s also more examples of how to use stuff from Petzold as well.

Cheers,

Ash



-1从 Windows驱动程序工具包(WDK)从VS 2010(提供免费评估)或VC2010 Express和ATL开始. 7.1.0 [^ ].
-2下载当前的 WTL 8.1 [ WTL使UI编程变得更快乐1 [ ^ ]和 ^ ]并阅读它们.
-4与文章匹配的更新样本(包括MtPad的MtPad7功能区版本)位于< wtl> \ samples文件夹中;用它们来跟随文章.
-5阅读并研究出色的迈克·邓恩(Mike Dunn)系列教程 [ ^ ] wtl/> CodeProject WTL区域 [ ^ ] .

-6您是Windows C ++的专家:)

欢呼声,
AR
Hi,
- 1 Start with VS 2010(free evaluation available) or VC2010 Express and ATL from the Windows Driver Kit (WDK) 7.1.0[^].
- 2 Download the current WTL 8.1[^] package, and install it.
- 3 Download the two fundamental articles (dated 06/2000) WTL Makes UI Programming a Joy part 1[^]and WTL Makes UI Programming a Joy part 2[^] and read them.
- 4 Updated samples matching the articles (including a MtPad7 ribbon version of MtPad) are in the <wtl>\samples folder; use them to follow the articles.
- 5 Read and study the great Mike Dunn series of tutorials[^] in CodeProject WTL area[^].

- 6 You are the master of Windows in C++ :)

cheers,
AR


如果您不使用.NET,大多数人会使用MFC,而MFC基本上是WIN32 API的微软帮助类,因为它是基于WIN32 API构建的.我认为这在Dev Studio的任何速成版中均不可用.不像C ++.Net.
http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library
If your not using .NET most people use MFC which is basically microsofts helper classes for win32 api since it is built on top of WIN32 api. I don''t think this is available in any express editions of Dev studio though. unlike C++.Net.
http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library


这篇关于Windows with C ++-从哪里开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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