線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1725
推到 Plurk!
推到 Facebook!

form轉成ActiveForm的問題

答題得分者是:anpino
wenpig
一般會員


發表:1
回覆:3
積分:0
註冊:2004-06-03

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-06-03 18:40:46 IP:210.60.xxx.xxx 未訂閱
請問一下...原來form轉成ActiveForm時,把元件一個個複製過去,但是裡面所寫的程式ㄝ必須要再複製過去,很麻煩,而且ㄝ容易出錯,再加上專案有好幾個form,是否有比較方便的方法可以解決...謝謝
anpino
版主


發表:31
回覆:477
積分:231
註冊:2003-01-02

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-06-04 10:40:19 IP:211.23.xxx.xxx 未訂閱
wenpig您好, 請參考: 【BCB】【問題】如何快速一般的Form換成ActiveForm? http://delphi.ktop.com.tw/topic.php?TOPIC_ID=50651 ------------------------------- 數學系是內功很強(邏輯/分析) 資工系是招式很多(程式技巧) 就像令狐沖VS東方不敗:D Anpinos Middle Earth http://anpino.hp.infoseek.co.jp/ -------------------------------
wenpig
一般會員


發表:1
回覆:3
積分:0
註冊:2004-06-03

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-06-04 11:11:25 IP:210.60.xxx.xxx 未訂閱
[quote] wenpig您好, 請參考: 【BCB】【問題】如何快速一般的Form換成ActiveForm? http://delphi.ktop.com.tw/topic.php?TOPIC_ID=50651 不好意思..這方法我有使用過..不過..把多的code加上原來的form上問題還是一直出來 [C Warning] atlwin.h(1579): W8017 Redefinition of 'MESSAGE_HANDLER' is not identical [C Error] Project.cpp(20): E2451 Undefined symbol 'CLSID_MDIFormGenePrediction' [C Error] Project.cpp(20): E2090 Qualifier 'TMDIFormGenePredictionImpl' is not a class or namespace name [C Error] Project.cpp(20): E2040 Declaration terminated incorrectly [C Error] Project.cpp(20): E2190 Unexpected } [C Error] Project.cpp(20): E2190 Unexpected } [C Error] Project.cpp(20): E2040 Declaration terminated incorrectly [C Error] Project.cpp(24): E2190 Unexpected } [C Error] Project.cpp(24): E2190 Unexpected } 如上面的error,因為我剛碰bcb所以功力很淺,希望高人能替我解決..謝謝
anpino
版主


發表:31
回覆:477
積分:231
註冊:2003-01-02

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-06-05 08:30:01 IP:211.23.xxx.xxx 未訂閱
引言: 不好意思..這方法我有使用過..不過..把多的code加上原來的form上問題還是一直出來 [C Warning] atlwin.h(1579): W8017 Redefinition of 'MESSAGE_HANDLER' is not identical [C Error] Project.cpp(20): E2451 Undefined symbol 'CLSID_MDIFormGenePrediction' [C Error] Project.cpp(20): E2090 Qualifier 'TMDIFormGenePredictionImpl' is not a class or namespace name [C Error] Project.cpp(20): E2040 Declaration terminated incorrectly [C Error] Project.cpp(20): E2190 Unexpected } [C Error] Project.cpp(20): E2190 Unexpected } [C Error] Project.cpp(20): E2040 Declaration terminated incorrectly [C Error] Project.cpp(24): E2190 Unexpected } [C Error] Project.cpp(24): E2190 Unexpected } 如上面的error,因為我剛碰bcb所以功力很淺,希望高人能替我解決..謝謝
由於我並不知道您的原碼,所以在你只丟出錯誤訊息的情形下我無法幫忙。 請將您的問題程式上傳到會員求助程式檔案上傳區: http://delphi.ktop.com.tw/forum.asp?FORUM_ID=97 以便會員們幫您看看。 ------------------------------- 數學系是內功很強(邏輯/分析) 資工系是招式很多(程式技巧) 就像令狐沖
wenpig
一般會員


發表:1
回覆:3
積分:0
註冊:2004-06-03

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-06-05 09:42:49 IP:210.60.xxx.xxx 未訂閱
抱歉...因為一急下..所以忘了把code放上去 project.cpp的code    #include  #pragma hdrstop #include USEFORM("GenePrediction.cpp", MDIFormGenePrediction); USEFORM("About.cpp", AboutBox); USEFORM("NCBI.cpp", FormNCBI); USEFORM("Generalizer.cpp", FormGeneralizer); //--------------------------------------------------------------------------- #pragma package(smart_init) TComModule ProjectModule; TComModule &_Module = ProjectModule; // The ATL Object map holds an array of _ATL_OBJMAP_ENTRY structures that // described the objects of your OLE server. The MAP is handed to your // project's CComModule-derived _Module object via the Init method. // BEGIN_OBJECT_MAP(ObjectMap) OBJECT_ENTRY(CLSID_MDIFormGenePrediction, TMDIFormGenePredictionImpl) OBJECT_ENTRY(CLSID_FormNCBI, TFormNCBIImpl) OBJECT_ENTRY(CLSID_AboutBox, TAboutBoxImpl) OBJECT_ENTRY(CLSID_FormGeneralizer, TFormGeneralizerImpl) END_OBJECT_MAP() // Entry point of your Server invoked by Windows for processes or threads are // initialized or terminated. // int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*) { if (reason == DLL_PROCESS_ATTACH) { _Module.Init(ObjectMap, hinst); DisableThreadLibraryCalls(hinst); } return TRUE; } // _Module.Term is typically invoked from the DLL_PROCESS_DETACH of your // DllEntryPoint. However, this may result in an incorrect shutdown sequence. // Instead an Exit routine is setup to invoke the cleanup routine // CComModule::Term. // void ModuleTerm(void) { _Module.Term(); } #pragma exit ModuleTerm 63 // Entry point of your Server invoked to inquire whether the DLL is no // longer in use and should be unloaded. // STDAPI __export DllCanUnloadNow(void) { return (_Module.GetLockCount()==0) ? S_OK : S_FALSE; } // Entry point of your Server allowing OLE to retrieve a class object from // your Server // STDAPI __export DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) { return _Module.GetClassObject(rclsid, riid, ppv); } // Entry point of your Server invoked to instruct the server to create // registry entries for all classes supported by the module // STDAPI __export DllRegisterServer(void) { return _Module.RegisterServer(TRUE); } // Entry point of your Server invoked to instruct the server to remove // all registry entries created through DllRegisterServer. // STDAPI __export DllUnregisterServer(void) { return _Module.UnregisterServer(); } 這段code出現下面所留的error...照所說的方法...把ActiveXform的CPP/H多的code貼到舊的form上..卻出現error
wenpig
一般會員


發表:1
回覆:3
積分:0
註冊:2004-06-03

發送簡訊給我
#6 引用回覆 回覆 發表時間:2004-06-05 09:49:25 IP:210.60.xxx.xxx 未訂閱
不好意思~~問題已經解決的...謝謝~~
anpino
版主


發表:31
回覆:477
積分:231
註冊:2003-01-02

發送簡訊給我
#7 引用回覆 回覆 發表時間:2004-06-05 17:05:31 IP:211.23.xxx.xxx 未訂閱
引言: 不好意思~~問題已經解決的...謝謝~~
可以請您說明解決的方式嗎? 提供給各位會員參考。 ------------------------------- 數學系是內功很強(邏輯/分析) 資工系是招式很多(程式技巧) 就像令狐沖
系統時間:2024-05-16 23:16:28
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!