连续调用的函数是什么 [英] What is the function that calls continously
问题描述
我在MFC中构建应用程序,希望我的应用程序以隐藏模式连续运行,因此,请您指导我应该对函数进行校准,以便在我的APP中连续调用它们.
例如,像taskmanager一样,它可以连续运行,并且可以在运行时进行更新,我也想以相同的方式使用它.
我将非常感谢您在此
Hi,
I building an application in MFC, i want my application to be continuously run in a hidden mode,So kindly can you guide in which function should i cal my functions so that they are called continuously in my APP.
For example like taskmanager ,it runs continously and it gets updated in runtime also i want to have it in the same way.
I will be thank full i you kindly help me out in this
推荐答案
最好帮我一个Windows服务.
请参阅:编写Windows服务-变得简单 [
Best would be a Windows Service.
see : Writing Windows Services - Made easy[^]
Few basic tips related to Windows Service
Installation
Open Visual Studio Command Prompt(Start>All Programs > Vistal Studio 20xx > Visual Studio Tools > Visual Studio Command Prompt.
Type in the following at command prompt to install the service
installutil "C:\Folder1\Folder2\Yourservice.exe"
卸载
打开Visual Studio命令提示符(开始>所有程序> Vistal Studio 20xx> Visual Studio工具> Visual Studio命令提示符.
在命令提示符处键入以下内容以卸载服务.
Uninstallation
Open Visual Studio Command Prompt(Start>All Programs > Vistal Studio 20xx > Visual Studio Tools > Visual Studio Command Prompt.
Type in the following at command prompt to uninstall the service.
installutil /u "C:\Folder1\Folder2\Yourservice.exe"
启动/停止Windows服务
打开命令提示符(在cmd中单击开始">运行"将启动命令提示符).
下一个
启动服务
Start/stop Windows Service
Open Command Prompt(Start>Run type in cmd will launch Command Prompt).
Next
Start the Service
net start Yourservicename
停止服务
Stop service
net stop Yourservicename
这篇关于连续调用的函数是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!