如何在Visual C ++中创建非托管Windows GUI? [英] How do I create a non managed Windows GUI in Visual C++?

查看:89
本文介绍了如何在Visual C ++中创建非托管Windows GUI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建"Windows窗体应用程序"时,生成的程序是托管程序.创建一个"Win32应用程序"会生成一个本机应用程序,但是当我尝试添加表单时,我被告知如果继续我的项目将转换为CLI.如何使用Visual C ++ 2008 Express Edition设计本机Windows GUI?我在这里可能很傻,但是我无法弄清楚.

When I create a 'Windows Forms Application', the resultant program is a managed one. Creating a 'Win32 Application' results in a native one, but when I try to add a form I'm informed that the project will be converted to CLI if I continue. How do I design a native Windows GUI with Visual C++ 2008 Express Edition? I'm probably being very silly here, but I just can't figure it out.

推荐答案

作为Reed Copsey,MFC将是在Windows平台上创建本机非托管GUI的默认"方式.但是,Visual Studio Express不包含MFC.因此,您要么需要升级到完整版本,要么可以使用免费的C ++ GUI库进行研究,例如 wxWidgets .

As Reed Copsey, MFC would be the "default" way of creating a native unmanaged GUI on the Windows platform. However, MFC is not included with Visual Studio Express. Consequently, you would either need to upgrade to the full version or you could look into using a freely available C++ GUI library such as wxWidgets.

如果要使用GUI编辑器,也有 wxFormsBuilder .

There is also wxFormsBuilder if you want a GUI editor.

您也可以转到裸机"并直接访问Win32 API,也许可以从

You could also go down to the "bare metal" and code right to the Win32 API, maybe take some help from the common controls library. But you'll be entering a world of pain ;)

这篇关于如何在Visual C ++中创建非托管Windows GUI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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