Winelib+Qt
Winelib User's Guide - WineHQ Wiki
Winelib is a development toolkit which allows you to compile your Windows applications on Unix.
Most of Winelib code consists of the Win32 API implementation. Fortunately this part is 100 percent shared with Wine. The remainder consists of Windows compatible headers and tools like the resource compiler (and even these are used when compiling Wine).
Thanks to the above, Winelib supports most C and C++ source code, resource and message files, and can generate graphical or console applications as well as dynamic libraries.
What is not supported is 16-bit source code as the types it depends on (especially segmented pointers) are not supported by Unix compilers. Also missing are some of the more exotic features of Microsoft compilers like native COM support and structured exception handling. So you may need to perform some modifications in your code when recompiling your application with Winelib. This guide is here to help you in this task.
What you gain by recompiling your application with Winelib is the ability to make calls to Unix APIs, directly from your Windows source code. This allows for a better integration with the Unix environment than is allowed by running an unmodified Windows application running in Wine. Another benefit is that a Winelib application can relatively easily be recompiled on a non-Intel architecture and run there without the need for a slow software emulation of the processor.
用CreateWindow等WIN32 API写界面太费事了。What if只把Qt里GUI的部分搬过来?网络I/O有select足矣,客户端要啥网络性能。Windows下有select(). 文件I/O有fstream和stdio. C++的string够了,用不着各种各样的String.
桌面虚拟化技术非常多。很可能已经有了在浏览器里用JS+CSS画个Explorer,打开的是服务器上的文件。不同用户共享文件极其方便,张总不用担心在办公室里Ctrl-C家里不能Ctrl-V了。:-) 真有人备份时只备份了一堆快捷方式。非常惭愧,学电脑的我并不会恢复格式化后的硬盘上的文件,我倒是会备份文件。
API要不受法律保护了 | Windows Server 2022贵不贵?
乱哄哄几十年,个别不会/敢用指针的程序员挣钱多且自我感觉良好。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理