Windows Form跨平台 [英] Windows Form to cross platform

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

问题描述

大家好
你能帮我吗
我开发了vc ++中的程序,它在Windows上运行良好
我该如何在没有像mono这样的依赖框架的情况下使它跨平台? 请我需要最简单的方法
在此先感谢

Hi all
Can u please help me
I''ve devoloped a program in vc++ and it''s working well on windows
How can i maks it a cross platform without depended framework like mono
Please i need the easiest way to do that
Thanks in advance

推荐答案

如果您要谈论的是在Windows,Linux和Mac上不使用Mono的情况下使WinForms C ++应用程序正常工作,那么恐怕不是这样.很简单:这就是开发Mono的原因.
进行重做以使用.NET,然后依靠Mono获得跨平台支持会容易得多.
If you are talking about making a WinForms C++ app work on Windows, Linux and Mac without using Mono, then I''m afraid it isn''t simple: that''s why Mono was developed.

It would be a lot easier to rework it to use .NET and then rely on Mono for cross platform support.


除非您正在使用Linux,否则无法在Linux上运行本机Windows C ++应用程序WINE,即使如此,您尝试运行的每个应用也必须分别进行测试.

Mono是.Net的开源版本,可在Linux上运行.您必须将应用程序转换为.Net才能在Mono上运行,即使那样,您也不能使用2.0以上的.Net版本,仍然有合理的机会使其在Mono下运行.

如果您想要真正的跨平台兼容性,那么最好的选择是Web应用程序.

You cannot run a native Windows C++ app on Linux unless you''re using WINE, and even then each app your try to run has to be tested individually.

Mono is the open-source version of .Net, and runs on Linux. You will have to convert your application to .Net to get it to run on Mono, and even then, you can''t use a version of .Net newer than 2.0 and still have a reasonable chance of getting it to run under Mono.

If you want true cross-platform compatibility, your best bet is a web application.


如果考虑到这一点,您真正想做的事情是不可能的.

您必须使用Mono而不是Windows .NET Framework,或者必须完全重写程序才能使用许多跨平台的GUI库之一.

您可能会找到 [ ^ ]有用/有趣.

有关跨平台GUI库的详细信息,请在Internet上搜索跨平台gui .
If you think about it, what you want to do is not really possible.

You have to either use Mono instead of the Windows .NET Framework, or you will have to completely rewrite your program to use one of the many cross-platform GUI Libraries.

You might find this[^] article useful/interesting.

For details of cross-platform GUI Libraries do an internet search for cross platform gui.


这篇关于Windows Form跨平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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