且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建在后台运行的exe?

更新时间:2023-02-09 18:45:15

一种方法是创建服务.另一个是将窗口隐藏起来.
One way is to create a service. Another is to make the window hidden.


您的任务对于服务解决方案是否成熟? :)

您还可以制作一个对话框应用程序
例如,使用VS向导,然后修改您的
Would be your task ripe for a service solution ? :)

You could also make a dialog application
with the VS wizard, for example, and then modify your
BOOL CYourApp::IntInstance()
{
  CWinAppEx::InitInstance();

  // add your working loop here
...
  // the end
  return FALSE;
}