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.
我的问题对你来说可能很简单,但我没有这方面的经验。所以,问题是我有一个 COM 服务器,它是从另一个 EXE 的上下文启动的,我需要阻止这个 COM 服务器应用程序打开命令提示符窗口,在此先感谢您的帮助。
如果您必须为服务器提供源代码,请更改链接器的 /MACHINE 选项。项目 + 属性、链接器、系统、子系统设置。并用 WinMain() 替换 main() 函数。
如果您不需要源代码,那么您可以使用
Editbin yourserver.exe /subsystem:Windows
从 Visual Studio 命令提示符。
创建/编译可执行文件作为 GUI 应用程序,默认情况下没有控制台。