Re: [問題] BCB呼叫DLL執行,畫面會反白

看板C_and_CPP (C/C++)作者 (楓霧)時間16年前 (2010/04/17 20:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
感謝 目前正在用Thread 不過有個小小的疑問 開啟thread是寫 MyThread = new TMyThread; 我的變數pudataarray,row,col,path,Vlimit,Ilimit,PF,PFtype,Ibase 怎麼傳到Execute(),中間又隔了一個Resume()? 以下是Thread程式碼的部分 __fastcall TMyThread::TMyThread(void):TThread(true) { Resume(); } //------------------------------------------------------- void __fastcall TMyThread::Execute(void) { int check = 1; FreeOnTerminate = true; if(!Terminated) { int (*maxdg)(double *,const int,const int,char *, double,double,double,int,double); HINSTANCE hInst = LoadLibrary(pathx.c_str()); (FARPROC &)maxdg = GetProcAddress(hInst,"maxdg"); check = maxdg(pudataarray,row,col,path,Vlimit,Ilimit,PF,PFtype,Ibase); FreeLibrary(hInst); } if(check==0) MyThread->Terminate(); } //======================================================= -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.207.32
文章代碼(AID): #1BoQF_dC (C_and_CPP)
文章代碼(AID): #1BoQF_dC (C_and_CPP)