如何在后端运行的C中创建exe文件 [英] How to create exe file in c that runs in back-end

查看:156
本文介绍了如何在后端运行的C中创建exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用c编写了一个程序,我想将其安装在系统中,该程序将计算系统使用的持续时间.我已在"taskscheduler"中添加了exe文件,以便在打开笔记本电脑时可以声明并创建一个窗口.但是,如果我关闭该窗口,它将无法正常工作.

因此,如何安装或如何创建exe文件,使其可以连续运行.

解决方案

将您的应用程序创建为Windows服务,并将连续运行.

或者,您可以调用 GetTickCount() [ ^ ]

I have written a program in c and I want to install it in my system which will calculate the duration of time that system is used. I have added the exe file in "taskscheduler" so that it is stating and creating one window when my laptop is switching on.But it is not working if I close the window.

So how can I install or how shall I create the exe file so that it will run continuously.

解决方案

Create your application as a windows service and it will be running continuously.

Or you can call GetTickCount()[^]


这篇关于如何在后端运行的C中创建exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆