整合BDS 2006/C++Builder 2006 和Boost 1.33.x

整合BDS 2006/C++Builder 2006 和Boost 1.33.x

最近我在準備一些有關C++Builder的東西,需要使用到Boost,剛好也有一些朋友詢問我如何在BDS 2006/C++Builder 2006中使用Boost架框。於是我花了一些時間整合BDS 2006/C++Builder 2006和最新的Boost 1.33.x版,以便讓我能夠在BDS 2006/C++Builder 2006中使用Boost。在這裡我整理出來讓需要使用的朋友參考一下。

要整合BDS 2006/C++Builder 2006和最新的Boost 1.33.x版,您需要進行下面的步驟:

n 取得Boost 1.33.x並且解開到一個目錄,在本篇文章中假設您是解開在D:\Boost133的目錄中 : 這兒我假設您已經知道怎麼做了

n 取得BCB 2006 For BoostPatch,您可以在SourceForge上找到或是在這下載 http://liwei.youkuaiyun.com/down/bcbboost-1_33_1-5_8_2-0.4.zip

解開這檔案並且取代Boost 1.33.x版中的內容

n 取得或是自己Build bjam.exe。您也可以在這裡下載它 : http://liwei.youkuaiyun.com/down/boost-jam-3.1.13-1-ntx86.zip

Bjam.exe解開到一個目錄並且把這個目錄加入到您的Path之中

n CDD:\Boost133,並且執行下面的命令

set BCCROOT=您的BDS 2006/C++Builder 2006的安裝目錄,例如

set BCCROOT=D:\Program Files\Borland\BDS\4.0

bjam “-sTOOLS=borland-5_8_2” install

接著耐心的等待C++Builder 2006的編譯器Build Boost的函式庫,結束之後會在D:\Boost133\bin\boost目錄之中產生靜態和動態連結函式庫。

現在就可以使用Boost函式庫,例如我先把所有Build出來的靜態函式庫拷貝到e:\seminars\bcb2006ex\boost_1_33_1\allbins目錄下,接著建立一個Console Application專案,撰寫一個Boost範例如下:

啟動Console Application專案的Options對話盒,在Include search path中加入您的boost目錄,例如D:\Boost133:

再把Boost函式庫的目錄加入到Library search path:

最後編譯此專案,然後就可以在DOS命令列中執行了,例如下面就是我執行Boost函式庫中範例的結果:

很簡單吧,Have funhave a good BDS 2006/Boost day!

Ehlib 是著名的数据库连接控制,版本为5.2.84,DBgrid增强VCL控件;支持多表头,多固定列,按表头排序,支持合计列,并支持直接打印。可以PB的ataWindow媲美。 本版本含完整源代码,支持以下 IDE: Delphi 5,6,7,2005 C++Builder 5,6 BDS 2006 (Delphi 2006, C++Builder 2006) Delphi 2007 RAD Studio 2009 (Delphi 2009, C++Builder 2009) Embarcadero RAD Studio 2010 (Delphi 2010, C++Builder 2010) 本人已在Delphi XE中运行通过,在本人编制的进销存软件中应用完全正常。 注:Delphi 2010、XE里面安装不要修改bpl文件的输出路径,采用默认值,否则安装难以成功。 Version 5.2 + Added feature to group data in the DBGridEh. It is allowed to make grouping at run-time and design-time. Grouping works only when the grid is connected to TMemTableEh dataset. Use next subproperties of Grid.DataGrouping property to adjust grouping Active: Boolean - Set this propery true to active grouping. DefaultStateExpanded: Boolean - defines initial expapnding/collapsing state of new created elements of the grouping tree. GroupLevels: TGridDataGroupLevelsEh - Collection of group levels. Use this property to create template of the grouping. GroupPanelVisible: Boolean - Set this property to True to show special panel at the top part of the grid. Then the panel is thisible it is allowed to form group levels by mouse. Drag title of the requaried column to the group panel and drop it onto panel. Font: TFont - Controls the attributes of the default font of group records in the grid. Color: Tcolor - Default background color of the group records. See demonstration project of grouping in Demos\DataGrouping directory. Version 5.1 * The type of RowPanel property was changed. Instead of Boolean type, now it is an object property with subproperies: Active: Boolean - Defines if it is possible to place cells under each over and if every propetry can have personal hight. + NavKeysNavigationType: TGridRowPanelNavKeysNavigationTypeEh - defines the order of navigation over cells in the grid when keys Up, Down, Left, Right are pressed. rpntRowT
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值