DELPHI 程式中,這些檔案是做啥麼用的! |
答題得分者是:hahalin
|
_CCH_
一般會員 發表:10 回覆:29 積分:7 註冊:2004-04-20 發送簡訊給我 |
|
hahalin
版主 發表:295 回覆:1698 積分:823 註冊:2002-04-14 發送簡訊給我 |
|
_CCH_
一般會員 發表:10 回覆:29 積分:7 註冊:2004-04-20 發送簡訊給我 |
|
hahalin
版主 發表:295 回覆:1698 積分:823 註冊:2002-04-14 發送簡訊給我 |
節錄自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 發送簡訊給我 |
|
hahalin
版主 發表:295 回覆:1698 積分:823 註冊:2002-04-14 發送簡訊給我 |
|
_CCH_
一般會員 發表:10 回覆:29 積分:7 註冊:2004-04-20 發送簡訊給我 |
圖示這個方法我知道。
不知能否程式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 發送簡訊給我 |
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. 秉燭夜遊,大塊文章。
文章是案頭之山水,山水是地上之文章。
------
秉燭夜遊,大塊文章。 文章是案頭之山水,山水是地上之文章。 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |