專案間的傳址 |
尚未結案
|
雲中鵝
一般會員 發表:14 回覆:24 積分:7 註冊:2004-12-21 發送簡訊給我 |
請問...
若一個專案間,有二個表單.其中一者中宣告成
Form1(umain.cpp):
struct st{
int b;
int stdcount; //stendet number
struct st *next;
};
struct st *first,*old,*nextptr,*ptr; Form2:
加入及 #include"umain.h"
extern struct st *first, *ptr, *old, *nextptr; .....(其他程式) 請問為何在form2找不到其struct裡的物件呢? 謝謝回答 Try it!
------
Try it! |
taishyang
站務副站長 發表:377 回覆:5490 積分:4563 註冊:2002-10-08 發送簡訊給我 |
您好:
請參考下面連結
http://delphi.ktop.com.tw/topic.php?topic_id=58923 順心
|
Fm
初階會員 發表:19 回覆:66 積分:37 註冊:2003-10-15 發送簡訊給我 |
//------my.h---- //插個花......** //或是你可以參考 Form的寫法就知道答案 //----------------- #ifndef __Test__ #define __Test__ class TForm { .......... void Test(void); }; extern TForm *Form1 #endif//------my.cpp---- #include my.h ... TForm *Form1 //------------ void TForm:Test(void) { } //----------- //------FYI /* 偏聽則誨,兼聽則明 * |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |