全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2016
推到 Plurk!
推到 Facebook!

DELPHI 程式中,這些檔案是做啥麼用的!

答題得分者是:hahalin
_CCH_
一般會員


發表:10
回覆:29
積分:7
註冊:2004-04-20

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-05-02 17:29:05 IP:211.75.xxx.xxx 未訂閱
請問一下,DELPHI 程式中 *.bpl *.dcp *.dpr *.dpk 它們各是是做啥麼用的! *.dpr 我知道,是 Project 用的。 不是有了 Project *.dpr了嘛? 這個,*.dpk 到底有什麼用? 秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-05-02 19:09:14 IP:218.170.xxx.xxx 未訂閱
dpr-compile->exe dpk-compile->bpl
_CCH_
一般會員


發表:10
回覆:29
積分:7
註冊:2004-04-20

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-05-02 20:45:22 IP:211.75.xxx.xxx 未訂閱
引言: dpr-compile->exe dpk-compile->bpl
謝謝解說。 那麼,我大慨就知道了。 bpl 是相當於LIB 靜態的程式庫,DLL 是動態的。 醬子說對吧!猜對了沒? 剩下一個 *.DCP 不知道。 秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-05-02 21:12:39 IP:218.170.xxx.xxx 未訂閱
節錄自help    .dcp    A binary image containing a package header and the concatenation of all dcu (Windows and Linux) or dpu (Linux) files in the package. A single dcp file is created for each package. The base name for the dcp is the base name of the dpk source file.    .bpl (Windows)    The runtime package. This file is a shared library with special Borland-specific features. The base name for the package is the base name of the dpk source file. 所以,還可以延伸 dpk includes pas dcp includes dcu(特別是當你的元件source不想給人家看可是程式要可以動) 另外注意一下紅色字的部分,大概就差不多了
_CCH_
一般會員


發表:10
回覆:29
積分:7
註冊:2004-04-20

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-05-02 21:30:38 IP:211.75.xxx.xxx 未訂閱
謝謝解答,問題已經結案了。 另外; *.PAS 程式當中,不知可有語法敘述, 類似C 或是 C include <*.h> 將程式庫位置指定出來。 沒有辦法的辦法; 難道都要將所有程式都混合在一個路徑目錄中, 醬子亂七八糟檔案都很亂的。 秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
hahalin
版主


發表:295
回覆:1698
積分:823
註冊:2002-04-14

發送簡訊給我
#6 引用回覆 回覆 發表時間:2004-05-02 22:29:23 IP:218.170.xxx.xxx 未訂閱
_CCH_
一般會員


發表:10
回覆:29
積分:7
註冊:2004-04-20

發送簡訊給我
#7 引用回覆 回覆 發表時間:2004-05-03 23:17:08 IP:211.22.xxx.xxx 未訂閱
圖示這個方法我知道。 不知能否程式PAS檔案中敘述指定,環境變數。 或是,DOS BOX 命令列下以 例如; SET = C:\DELPHI_Dir\XX.bpl SET = C:\DELPHI_Dir\XX.dcp SET = C:\DELPHI_Dir\XX.dpr SET = C:\DELPHI_Dir\XX.dpk 好像不行。除非是DCC32 才能,或是dcc32.cfg 設定程式庫路徑。 秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
_CCH_
一般會員


發表:10
回覆:29
積分:7
註冊:2004-04-20

發送簡訊給我
#8 引用回覆 回覆 發表時間:2004-05-04 12:09:00 IP:211.75.xxx.xxx 未訂閱
C++Builder 中,環境變數可以使用#pragma comment 設定。 如"01." 方式。(#pragma comment 可以由 *.H 或 *.CPP 宣告) 而DELPHI 中,其環境變數除了IDE 的介面 如"02."所述; 之外,難道就不能由程式本身來敘述嘛? (*.PAS 程式當中宣告!) (DELPHI 好難用喔,還是VC 和BC 還有BCB 比較好學。 對了Borland Pascal 的Turbo Pascal比較簡當不複雜。) [color=Red]01.[/color] [color=Red]#pragma comment[/color] [color=Blue]Syntax[/color] #pragma comment (comment type, "string") [color=Blue]Description[/color] The [color=Blue]comment[/color] directive lets you write a comment record into an output file. The comment type can be one of the following values: Value Explanation ----------------------------------------------------------- [color=Blue]exestr[/color] The linker writes string into an .OBJ file. Your specified string is placed in the executable file. Such a string is never loaded into memory but can be found in the executable file by use of a suitable file search utility. [color=Blue]lib[/color] Writes a comment record into an .OBJ file. A library module that is not specified in the linker's response-file can be specified by the comment LIB directive. The linker includes the library module name specified in string as the last library. Multiple modules can be named and linked in the order in which they are named. [color=Blue]user[/color] The compiler writes string into the .OBJ file. The specified string is ignored by the linker. [color=Red]02.[/color] [color=Red]Packages and standard DLLs[/color] Create a package when you want to make a custom component that's available through the IDE. Create a standard DLL when you want to build a library that can be called from any application, regardless of the development tool used to build the application. The following table lists the file types associated with packages: File extension Contents ----------------------------------------------------------- [color=Blue]bpl[/color] The runtime package. This file is a Windows .dll with special Delphi-specific features. The base name for the .bpl is the base name of the of the .dpk or .dpkwsource file. [color=Blue]dcp[/color] A binary image containing a package header and the concatenation of all .dcu files in the package, including all symbol information required by the compiler. A single dcp file is created for each package. The base name for the dcp is the base name of the .dpk source file. You must have a .dcp file to build an application with packages. [color=Blue]dcu and pas[/color] The binary images for a unit file contained in a package. One .dcu is created, when necessary, for each unit file. [color=Blue]dpk and dpkw[/color] The source files listing the units contained in the package. .dpk and .dpkw packages are identical, but use the .dpkw extension for packages that you want to use in cross-platform applications. You can include VCL and CLX components in a package. Packages meant to be cross-platform should include CLX components only. Note Packages share their global data with other modules in an application. 秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
系統時間:2024-05-11 10:52:34
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!