Win32编程基础 [英] Basics of Win32 Programming

查看:122
本文介绍了Win32编程基础的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我是Win32编程的新手.我已经熟悉C,C ++和C敏锐编程.谁能说出使用C,C ++和C Sharp进行Win32编程之间的区别或相似之处.还请分享Win32编程的应用领域.

在此先感谢
Arun ....

Hi Experts,

I am new to win32 programming. I am already familiar with C,C++ and C sharp programming. Can anyone tell the difference or similarities between Win32 programming with C,C++ and C sharp. Also please share the application areas of Win32 programming.

Thanks in advance
Arun....

推荐答案

您可以像在其他任何系统OS上一样使用C/C ++和C Sharp访问OS功能.

Microsoft提供了Visual C ++和C#的免费版本.这些应该可以帮助您开始创建Windows应用程序.
http://www.microsoft.com/visualstudio/en-us/products/2010-版本/快递 [^ ]

该站点提供有关Win32编程的教程.
http://win32developer.com/ [ ^ ]

关于
You can use C/C++ and C sharp the same as you would on any other system OS, the difference is in the API calls used to access the OS functions.

Microsoft provides free versions of Visual C++ and C # These should get you started in creating Windows applications.
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express[^]

This site offers tutorials in Win32 programming.
http://win32developer.com/[^]

Regards


Win32基本上是所有其他Windows技术都基于的C API.

它不是过时的,尽管在其之上构建了许多较新的图层/框架.有人会告诉您它已经过时了,您应该只学习最新的框架.

如果您只需要构建一些用户界面,那么最新的框架就可以了,直到遇到与您期望的方式不太一样的东西.然后,如果您了解底层的Win32层,则可以帮助您弄清楚框架在做什么,或者如何完成所需的事件,尽管框架不允许您这样做.

简历上的Win32不一定会让您超越正在搜索.NET或WPF或Silverlight的关键字的猎头公司,但是它将使您了解其余部分的基础,这将使您从长远来看是一个更好的程序员.

如果要编写Win32代码,我建议使用C/C ++,因为它们可以本地编译并直接调用Win32函数.

C#被编译为CLR(公共语言运行时),并在托管"虚拟机中运行.因此,从它到Win32函数的调用需要经过转换层.因此,如果您要学习Win32本身,请坚持使用C ++. C#拥有自己的一组库/框架(.NET),可以处理到Win32的转换-在C#中,您通常会调用.NET函数,而不是直接调用Win32.

对于应用程序领域,Win32实际上只是我如何与Windows操作系统交互"-意味着您要在Windows上运行的任何应用程序都将使用它.它实际上并不受限于任何特定的应用领域.有更高层次的框架更适合于不同类型的应用程序,但是在Win32层次上,确实没有区别.
Win32 is basically a C API that all the other Windows technologies are built on.

It''s not obsolete, although there are a lot of newer layers/frameworks built on top of it. Some will tell you that it''s obsolete and you should just learn the latest framework.

If you just need to get some user interface built, then the latest framework is fine until you run into something that doesn''t quite work the way you expect. Then if you understand the underlying Win32 layer it helps you figure out what the heck your framework is doing or how to do what you want event though the framework won''t let you.

Win32 on your resume won''t necessarily get you past the headhunter who is doing a keyword search for .NET or WPF or Silverlight, but it will give you an understanding of the foundation that the rest is build on, and that will make you a better programmer in the long run.

If you want to write Win32 code, I''d recommend C/C++ as they can be compiled natively and directly call Win32 functions.

C# is compiled to CLR (Common Language Runtime) and runs in a "managed" virtual machine. As such calls from it to Win32 functions need to go through a translation layer. So if Win32 itself is what you want to learn, stick with C++. C# has it''s own set of libraries/frameworks (.NET) that handle the translation to Win32 -- in C# you would normally call .NET functions rather than call Win32 directly.

As far as application areas, Win32 is really just "how do I interact with the Windows OS" -- that means any application that you''d want to run on Windows will use it. It''s not really limited or tailored to any specific application area. There are higher level frameworks that are better for different types of applications, but at the Win32 level there really isn''t a distinction to be made.


Win32编程就是关于调用Windows API的.例行程序.这就是为什么它也称为Win32 API编程. Win32-API编程就是对Windows进行编程.在C ++中,您为基于文本的应用程序编写了代码.但是在Win32中,您将编写用于创建Windows的代码,您每天都会在Windows PC上看到这些窗口.有关更多详细信息,请使用此链接 http://www.functionx.com/win32/Lesson01.htm [ ^ ]
Win32 programming is all about calling the windows API routines. That''s, why its also called Win32 API programming. The Win32-API programming is all about programming the windows. In C++, you did code for the text based applications. But in Win32, you will code for creating windows, which you daily seen on you Windows PC. For more details, use this link http://www.functionx.com/win32/Lesson01.htm[^]


这篇关于Win32编程基础的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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