English 中文(简体)
为什么我要使用管理(C#和.NET)或本地代码来开发Windows API?
原标题:Why would I want to use managed (C# and .NET) or native code for Windows API development?

作为开发者学习Windows API的编程,我为什么应该使用本地代码,有什么原因应该使用管理代码?

假设我同样熟悉两种类型的发展,

问题回答

.NET :生产力、发展便利。缺少一些 API, 需要使用 < code> PInvoke 导入

Win32 API in C/strong>:所有API都可用。有时它们使用起来难度很大,因为潜在的复杂性没有隐藏在.NET类后面。

一般来说,这一切都取决于你所需要的控制量, 以及你必须完成的任务的时间。

您可以使用.NET 框架快速地做一些事情,因为大多数功能都是用(尽管是饼干型的) 构建的。

d 使用未管理的 C++ 应用程序使用 MFC,如果您需要对应用程序及其对某些事件的反应进行高度控制。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签