创建Windows应用程序的最佳方法 [英] Best way to create windows applications

查看:123
本文介绍了创建Windows应用程序的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在学习,从网上和PDF图书的窗口API,但我听说的使用SDK和Visual Studio程序的人。我该怎么办? API我想创建,但极其复杂。我就从学习API或者我应该得到写入code对我来说是SDK或计划中受益?我有MSC ++Ë,但我不认为它与那些benifts

I have been learning windows API from online and PDF books but I hear of people using sdk and visual studio programs. What should i do? API I'd create but extremely complex. Would I benefit from learning the API or should I get a sdk or program that writes to code for me? I have msc++e but I don't think it comes with those benifts

推荐答案

在窗口的情况下,SDK和Win32 API的参考pretty同样的事情。 SDK是你需要为目标的A​​PI(这始终是一个SDK是什么)中的所有垃圾。当你在Windows上使用非VC编译器(或交叉编译器),你必须下载SDK为了写Win32程序。

In the case of windows, the SDK and the Win32 API refer to pretty much the same thing. The SDK is all the crap you need to target the API (this is always what an "SDK" is). When you're using a non-VC compiler on windows (or a cross-compiler) you have to download the SDK in order to write win32 programs.

有其瞄准的Win32 API本身是非常有用的情形是很少见。通常你想在像MFC,WTL或WX的API更高层次的工作(包括我WX因为窗户它实际上是为Win32的包装)。也有做自己的事,只是画自己的一切(全部所有者绘制窗口)库比如QT,GTK等。

There's very few situations in which targeting the Win32 API itself is useful. You usually want to work at a higher level with an API like MFC, WTL, or WX (I include WX because for windows it's actually a wrapper for Win32). There are also libraries that do their own thing and just draw everything themselves (all owner drawn windows) like Qt, GTK, etc.

如果你与你还是会最终触及的Win32 API偶尔而是仅小零件一个窗口特定库工作。你可以节省很多时间只是让这些部件转动起来,而不是真正想学的API本身。没有人是不是疯了或者被折磨就范写道原料的Win32。

If you're working with a windows specific library you'll still end up touching the Win32 API occasionally but only small parts of it. You'll save a LOT of time just letting those parts turn up instead of actually trying to learn the API itself. Nobody that isn't insane or being tortured into submission writes raw Win32.

这篇关于创建Windows应用程序的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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