Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 D 编写一个 SDL 应用程序(因此我想保持高度的平台独立性),并且我正在寻找一种方法来阻止命令提示符打开发布版本。如何做到这一点?
使用选项调用 DMD -L-Subsystem:Windows。
-L-Subsystem:Windows
只需确保您main的更改为WinMain,并带有适当的参数。
main
WinMain
我正是这样做的https://bitbucket.org/ponce/vibrant/src/032e61352ad9/trunk/vibrant/vibrant.d(公共领域)