如何使用没有clr / cli的表单 [英] How do I use forms without clr/cli

查看:66
本文介绍了如何使用没有clr / cli的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio中使用C ++和Forms。它们非常适合快速GUI ..但是

如果它变得更复杂,我会纠结于CLR / CLI错误。看起来Form和.net库都是CLR。有什么希望吗?

I would like to use C++ with Forms in Visual Studio. They are great for a quick GUI.. but
If it becomes more complex, I get tangled up with CLR/CLI errors. It looks like Form and .net libraries are all CLR. Is there any hope?

推荐答案

您可以查看WinForms的pre -.NET版本(即20世纪90年代的东西)并通过COM使用或查看MFC如果你想做非clr GUI的东西。



其他明智的将你的大部分困难逻辑分成win32 dll,你可以编译并从你的更薄的clr调用它基于UI。
You could either look into the pre-.NET versions of WinForms (i.e. stuff from the 1990s) and use that via COM or look into MFC if you want to do non clr GUI stuff.

Other wise separate most of your difficult logic into a win32 dll that you can compile and call it from your thinner clr based UI.


这篇关于如何使用没有clr / cli的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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