如何使我的Win32 Exe支持不同的操作系统 [英] How Can I Make My Win32 Exe To Support For Different Operating Systems

查看:116
本文介绍了如何使我的Win32 Exe支持不同的操作系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我使用win32创建了一个树控件.exe我被要求让我的.exe支持不同的操作系统我的意思是它必须在不同的操作系统上运行。我应该添加一段代码来支持不同的操作系统。任何人都可以帮我完成这项工作。





问候,

Jo

解决方案

我想知道它是否支持。 Win32 .exe扩展仅适用于Windows操作系统,因为Windows具有所有运行时dll等。如果您希望任何程序可移植,则需要使用适当的编译器为目标系统创建二进制文件。



可能您可以尝试将业务逻辑作为单独的模块而不是UI。使该模块可移植,可在Windows和Unix上编译。然后对支持的体系结构使用不同的UI(例如,基于html)。


Win32 应用程序在Windows上运行。如果您需要编写跨平台代码,那么您可以考虑使用,例如 Java (或 QT )。 / BLOCKQUOTE>

Hi,

I Created an tree control .exe using win32 and i was asked to make my .exe to support for different operating systems i mean it has to run on different operating systems .Should i add an piece of code to make it support for different operating systems.Can anyone please help me out to make this done.


Regards,
Jo

解决方案

I wonder if it would support. Win32 .exe extensions would work only in windows OS, as Windows have all the run time dlls etc. If you want any program to be portable, you need to use appropriate compilers for creating a binary for the target system.

May be you could try having a business logic as a separate module than from UI. Make this module as portable, compilable on Windows and Unix. Then use different UI (say, html based) for the supported architecture.


Win32 applications runs, well, on Windows. If you need to write a cross platform code then you could consider using, for instance Java (or QT).


这篇关于如何使我的Win32 Exe支持不同的操作系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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