bestlong 怕失憶論壇's Archiver

bestlong 發表於 2011-12-10 16:53

在 Delphi 安裝 ZeosLib (ZeosDBO)

ZeosLib 是一個資料庫元件集

支援 MySQL, PostgreSQL, Interbase, Firebird, MS SQL, Sybase, Oracle and SQLite 等多種資料庫

支援 Delphi, FreePascal/Lazarus, Kylix and C++ Builder 等多個開發環境

[url]http://sourceforge.net/projects/zeoslib/[/url]
[url]http://zeos.firmos.at/[/url]

以 Delphi 5 環境安裝為例,請點選功能表 File > Open 瀏覽到 ZeosDBO 的程式碼目錄中 packages\delphi5\ 開啟 ZeosDbo.bpg



開啟後出現下列視窗



接著逐步在 ZCore.bpl ZParseSql.bpl ZPlain.bpl ZDbc.bpl 各項執行期元件用滑鼠點選後右鍵功能表選 Compile 進行編譯:



到了 ZComponent.bpl 是設計時期元件,改選用 Install 進行安裝:



沒問題的話,就會出現安裝的訊息:



接著在 Delphi 開發環境介面上的元件盤就會有了下列元件圖示:



關閉 ZeosDbo.bpg 會詢問是否儲存異動,請選擇 NO



編譯產生的 *.dcu 檔案都會放在 ZeosDBO-6.6.6-stable\packages\delphi5\build\ 內
最後將路徑加入開發環境的 Library Path 設定:



這樣就完成安裝了。

bestlong 發表於 2011-12-14 13:13

Zeos 在 Delphi 7 開發環境中就可以讓編譯的程序一次完成

這是開啟 ZeosDBO-6.6.6-stable\packages\delphi7\ZeosDbo.bpg 後的畫面:



在 ZCore70.bpl 用滑鼠點選右鍵選擇 Compile All From Here 就會依序完成編譯:



編譯產生的 *.dcu 檔案都會放在 packages\delphi7\build\ 目錄下。
最後再進行安裝設計時期元件:





記得最後還要將 ZeosDBO-6.6.6-stable\packages\delphi7\build\ 加入到 Library Path 列表中

關閉 ZeosDbo.bpg 時會詢問是否要儲存 ZComponentDesign.dpk 記得選 No

這樣就快速的完成安裝了。
頁: [1]

Powered by Discuz! X1.5 Archiver   © 2001-2010 Comsenz Inc.