Delphi2010组件/控件安装方法

Delphi2010组件/控件安装方法

  • 吴铭嗣 级别:高中生 (7级) 本小组身份:组长

    在D2010IDE,初学者大都能够安装.Net控件,但VCL控件如何安装?大都茫然!下面就来力求详尽地回答这一问题。

    首先注意到Delphi2010的组件/控件安装,只支持BPL文件。所以,不管是pas文件、dpk文件或ocx文件类的组件或控件,都需要将其;变成bpl包文件。

    1. BPL类,直接安装:确认你的BPL所丰文件夹后,点击“Cpmponent-Install Packages-Add......”即可完成安装;

    2. 源码类:即Pas文件:需要新建BPL文件,再按步骤1进行安装。方法如下:点击“File-New-Package-Delphi”新建一个Package文件,并起名保存(别忘记保存在哪里哈!),点击“Project-Add to Project...”,将组件源码添加进来,然后在“project manager”里选择包文件,并点击右键选择“install”就行了。别忘记“Close All”退出时一定要保存包文件,否则下次启动时会找不到包了。

    3. ActiveX类控件:通常为OCX文件,如“并行口访问控件”(http://bbs.2ccc.com/topic.asp?topicid=344133"><span ),安装原则是,先将其编译成pas文件,再按照方法2安装。方法:点击“Cpmponent-Import Component...”,在对话框中选择“Import ActiveX Control”,点击Next,弹出对话框,此时有两种可能,若控件未注册,请选择Add;若控件已注册(通常在“运行...”处用“RegSvr32”命令来注册控件),则直接从列表中选择你要安装的控件(如上述的hwiInterface ActiveX Control module),然后点击Next;在弹出对话框中,要记住其中“Unit Dir Name”里面的路径名,它表示你在此保存的了pas文件;再点击Next,选中“Create Unit”即可生成pas文件,然后按照步骤2完成控件安装。

    4. dpk类: 在IDE的file-open打开DPK文件;在project manager窗口点击右键,并选择“Build”,可生成BPL;然后按照步骤1完成控件安装;或者选择“Install”直接安装控件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
delphi2-delphi2010 全支持 dcu 装换 pas -------------------------------------------------------------------------------- Project Dcu2Pas Version 1.3 Purpose Decompile a D2-D7, K1-K3's dcu(dpu) file to Delphi source as origin as possible, without or with minimal modifications, then recompile to new one under other Delphi versions Author Nengwen Zhuo(卓能文) Homes http://soarowl.uhome.net, http://www.websamba.com/soarowl, http://soarowl.0catch.com Emails soarowl@yeah.net, soarowl@sina.com.cn Released 2003-02-10 Lastest home/dl/Dcu2Pas.rar(zip) FOR RESTORE YOUR LOST SOURCES AND OPTIMIZE YOUR CODES ONLY!!! -------------------------------------------------------------------------------- This project is in very early stage, no document yet. To see some features, reference my test cases file -- test.pas and the output file test.int, please. The output maybe more clear organised than source files!!! For further development, any suggestions and ideas are welcome. I have no time to update my homepages for a long time ;-) -------------------------------------------------------------------------------- Usage Run Dcu2pas, set properly options, select a desired dcu file double click to decompile it -------------------------------------------------------------------------------- Features - Supports the following type declarations and their typed consts: * Type redeclarations, for example: type MyTypeString = type String; * All integer types(Byte, Cardinal, Int64, Integer, Longint, Longword, Shortint, Smallint, Word) * All char types(AnsiChar, Char, WideChar) * All boolean types(Boolean, ByteBool, LongBool, WordBool) * Enumerated type, subrange of enumerated type and set of enumerated type For examples: type Size = (Small = 5, Medium = 10, Large = Small + Medium); TMySize = Medium..Large; type TEnumSet = set of (Club, Diamond, Heart, Spade); const vcSet4: TEnumSet = [Club,Spade]; * All real types(Comp, Currency, Double, Extended, Real, Real48, Single) * All string types(AnsiString, ShortString, String, String[XX], WideString) * Array type(with/without packed keyword), dynamic array and multidimensional dynamic array * Set type * Record type, with any variant parts in records. But if a record has any variant parts in it, the typed const may can't correctly decompile * Function/procedure type declaration - Support threadvar - Support resourcestring - Support class type, interface inheritation - Support object type - Support interface - Code decompiler to BASM, then a decpompiled file can recompile under other Delphi versions... - Code decompiler to Object-Pascal. I have some ideas, but I have no time, maybe in near future, I will code for it! -------------------------------------------------------------------------------- Update history Legend: - Bug fixed * Algorithm enhanced + New featuer added Ver2.0 Ver1.3 2003-02-10 * Code decompiler redesigned * Partly support D7 Ver1.2 2002-07-28 + Delete procedure, contructor, destructor frame 2002-07-18 + Procedure variable const + Now can distinguish: vc1: PChar ='test'; vc2: PChar = @vc1; 2002-05-28(Ver1.1) + Now correctly process interface properties and argument default values + Support resources, for example: {%R *.dfm}, {$R *.res} 2002-05-26 + Support default arguments + Support interface 2002-05-25 + Support object type + Support resourcestring + Support threadvar + Support function/procedure type 2002-05-24 + Support file type + Support set of enumerated type const decompiler + Support enumerated type const decompiler + Support subrange of enumerated type + Support dynamic array type - Array [enumerted type] of ... - Bugs in [packed] array fixed - Bugs in [packed] record fixed - Bugs in enumerated type fixed - Bugs in classify interface and implement declarations fixed
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值