摘要: char *SNAME = "Service1";//---------------------------------------------------------------------------void __fastcall TForm2::Button1Click(TObject *Sender){ SC_HANDLE scm=OpenSCManager(NULL,NULL, SC_MANAGER_CREATE_SERVICE); if (scm!=NULL){ SC_HANDLE svc=CreateService(scm, SNAME, SNAME,//Service名字 SE 阅读全文
posted @ 2011-01-28 14:37 81 阅读(310) 评论(0) 推荐(0)
摘要: New菜单项中有专门的线程模板,以下是模板生成的cpp:__fastcall myt::myt(bool CreateSuspended) : TThread(CreateSuspended){ FreeOnTerminate=true;}void __fastcall myt::xx(){ //---- Place thread code here ---- for(int i=1;i 4;i++) Form1-Edit3-Text = Form1-Edit3-Text+"我得" + this-xxx;}//----------------------------------- 阅读全文
posted @ 2011-01-28 12:47 81 阅读(446) 评论(0) 推荐(0)