全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1498
推到 Plurk!
推到 Facebook!

要怎麼才能製作一個 Service

答題得分者是:delphiwww
laku0121
一般會員


發表:39
回覆:49
積分:17
註冊:2002-10-30

發送簡訊給我
#1 引用回覆 回覆 發表時間:2002-11-12 10:42:10 IP:211.76.xxx.xxx 未訂閱
要怎麼才能建立一個在Windows Service執行的程或呢!!
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2002-11-12 11:03:17 IP:147.8.xxx.xxx 未訂閱
laku0121
一般會員


發表:39
回覆:49
積分:17
註冊:2002-10-30

發送簡訊給我
#3 引用回覆 回覆 發表時間:2002-11-12 11:58:03 IP:211.76.xxx.xxx 未訂閱
Willian.. 你所回覆的範例在測試執行時並沒有在Service中產生,服務情形無法得知其產生的結果,但也是很謝謝你, 感恩啊!!
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2002-11-12 12:16:25 IP:147.8.xxx.xxx 未訂閱
Tried this command line? "service /install" to install the service and "service /uninstall" to uninstall it. It works fine on my Windows 2000.
laku0121
一般會員


發表:39
回覆:49
積分:17
註冊:2002-10-30

發送簡訊給我
#5 引用回覆 回覆 發表時間:2002-11-12 14:53:36 IP:211.76.xxx.xxx 未訂閱
可能是我比較笨,且比較不熟Delphi的關係,很難理解其中的道理
delphiwww
資深會員


發表:145
回覆:363
積分:368
註冊:2002-03-13

發送簡訊給我
#6 引用回覆 回覆 發表時間:2002-11-12 14:56:47 IP:202.145.xxx.xxx 未訂閱
你可以下載第76期電子報回去看, http://home.pchome.com.tw/home/delphiwww/    KTop上也可以下載
引言: 可能是我比較笨,且比較不熟Delphi的關係,很難理解其中的道理
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#7 引用回覆 回覆 發表時間:2002-11-12 15:04:36 IP:147.8.xxx.xxx 未訂閱
In simple words, service is a special kind of thread and you should implement service as you are implementing a thread. In the example file, there is a compiled execute "service.exe", to install it run it using the parameter "/install" and uninstall it using parameter "/uninstall". If you want to build it yourself, an easy way is to create a new "Service Application", remove the default "Unit1.pas" generated and include the Unit1.pas file from the example. Then save the project and now you should be able to build it.
laku0121
一般會員


發表:39
回覆:49
積分:17
註冊:2002-10-30

發送簡訊給我
#8 引用回覆 回覆 發表時間:2002-11-12 15:32:07 IP:211.76.xxx.xxx 未訂閱
非常感謝兩位的幫忙,此問題已經有了眉目了,剩下的只能靠自己多用功一點了,謝謝兩位。
系統時間:2024-04-24 16:30:41
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!