我想写一个service application (50分在线等)

youhuai 2005-10-14 07:54:27
我想写一个Service Application,每小时改变C:\MyTxt.Txt的内容一次,请高手指点.

因重伤,只能用左手工作,查阅资料不便,希望大家帮帮忙,不胜感激.
...全文
93 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
youhuai 2005-10-14
  • 打赏
  • 举报
回复
如何使它运行呢?
shadowstar 2005-10-14
  • 打赏
  • 举报
回复
新建一个Service Application

procedure TService1.ServiceExecute(Sender: TService);
begin
while not Terminated do
begin
ServiceThread.ProcessRequests(True);
end;
end;

放个TTimer,OK
youhuai 2005-10-14
  • 打赏
  • 举报
回复
我是不会弄服务程序,改变文件内容的代码我会写
weill 2005-10-14
  • 打赏
  • 举报
回复
Service Application?
什么意思?服务程序吗?
如果单指“每小时改变C:\MyTxt.Txt的内容一次”而言,并不是很难的,文件的操作罢了。

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧