message box使用問題 |
尚未結案
|
itsam
一般會員 發表:4 回覆:3 積分:1 註冊:2002-10-21 發送簡訊給我 |
|
ddy
站務副站長 發表:262 回覆:2105 積分:1169 註冊:2002-07-13 發送簡訊給我 |
引言: messagebox('test','test',MB_OK)宣告如下,你第一個參數錯誤了 int MessageBox( HWND hWnd, // handle of owner window LPCTSTR lpText, // address of text in message box LPCTSTR lpCaption, // address of title of message box UINT uType // style of message box ); MessageBox(self.Handle ,'test','test',MB_OK); 或是 MessageBox(0,'test','test',MB_OK); 都可以 有問題多看Help吧 噓~~~~~~沉思中… |
P.D.
版主 發表:603 回覆:4038 積分:3874 註冊:2006-10-31 發送簡訊給我 |
引言: statement如下 messagebox('test','test',MB_OK) error message [Error] hedu1.pas(63): Incompatible types: 'HWND' and 'String' [Error] hedu1.pas(63): Incompatible types: 'Integer' and 'PChar' 請問錯誤如何更正 sam procedure TForm1.Button1Click(Sender: TObject); var nhwd: THandle; begin nhwd:= Form1.Handle; messagebox(nhwd,'test','title',MB_OK) end;1.你漏掉一個參數, 抬頭 2.Handle指向自己的form, (本例為form1) 3.如果你只是想做出一個box視窗, 其實還有其他更好的function如 Application.MessageBox() MessageDlg() 查看一下書, 每本都會有介紹! |
ericyu
一般會員 發表:2 回覆:18 積分:24 註冊:2002-03-13 發送簡訊給我 |
|
james007
一般會員 發表:0 回覆:1 積分:0 註冊:2003-04-23 發送簡訊給我 |
|
Justmade
版主 發表:94 回覆:1934 積分:2030 註冊:2003-03-12 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |