的Win32 API和.NET框架之间的选择 [英] choice between win32 APIs and .NET framework

查看:295
本文介绍了的Win32 API和.NET框架之间的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开发窗口,使被识别手势控制鼠标,通过网络摄像头的应用程序。我会用VC ++ 2008的发展。但我很困惑是否要与.NET框架或核心的Win32 API。性能是我的应用程序非常重要。由于每本书由艾弗霍顿开始的Visual C ++ 2008,还有在使用.NET Framework相关的小的性能损失。我想知道什么各种因素的处罚取决于它是否会是使用.NET框架,我的应用程序是可行的。

I have to develop an application for windows that will enable controlling the mouse through web cam by recognizing hand gestures. I will be using vc++ 2008 for development. But I am confused whether to go with .NET framework or core win32 APIs. Performance is very important for my application. As per the book "Beginning Visual C++ 2008" by Ivor Horton, there is a small performance penalty associated in using .NET framework. I wanted to know on what all factors the penalty depends upon and will it be feasible to use .NET framework for my application.

推荐答案

如果你熟悉的Win32 API,然后去的Win32 API。这是你的情况自然的选择,因为大多数的源$ C ​​$ C将视频采集,图像处理,算法和接口的鼠标在Windows中。如果你有兴趣在性能上,更贴近硬件避免厚厚的像.NET。

If you are acquainted with Win32 API, then go Win32 API. It is the natural choice in your case since most of your source code will be video capturing, image processing, algorithms, and interfaces to mouse in Windows. When you are interested in performance, be closer to the hardware avoiding thick layers like .NET.

我认为.NET是的复杂的业务应用的不是实时的应用程序或设备驱动程序。

I believe that .NET is for complex business applications not for real-time applications or device drivers.

这篇关于的Win32 API和.NET框架之间的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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