Delphi XE3 下安装ActiveX控件「建议收藏」

Delphi XE3 下安装ActiveX控件「建议收藏」http://blog.csdn.net/lee576/article/details/1770744此英文文章来自codegear官方网站,但是是讲在BDS2006 下如何安装,我在delphi2007下用此方法,一样通过,原文如下 Description:HowtoimportanActiveXcontrolinBDS2006?Answer/S

大家好,又见面了,我是你们的朋友全栈君。

http://blog.csdn.net/lee576/article/details/1770744

此英文文章来自codegear官方网站,但是是讲在BDS2006 下如何安装,我在delphi 2007下用此方法,一样通过,原文如下 

Description:

How to import an ActiveX control in BDS 2006?


Answer/Solution:

Here’s the procedure for importing and installing an ActiveX control in BDS 2006.

(1)
Open BDS 2006 and select File | New | Package – C++Builder.

(2)
Select Component | Import Component, select the appropriate kind of component, then hit Next.

(3)
Click the Add button and select your .ocx, .dll, .tlb, and so forth, file. Highlight the component in the list of controls and hit Next.

(4)
Set the Palette Page (this is where the component will appear in the tool palette) and pay attention to the Unit Dir Name field. The Unit Dir Name is the directory where your component’s .cpp, .h, and other files will be generated. Hit Next.

(5)
Select “Add unit to PackageName.bdsproj project” and hit Finish.

(6)
Bring up the Project Manager and right-click on the package (the .bpl file) and click Install. This will build, register, and install the component into the tool palette.

Some additional notes follow. These are not vital to the control importation process but will help explain what happens…

**
In step #5, if you don’t want the component to be installed into the tool palette, then select “Create unit” instead. The generated files will go into the directory specified by Unit Dir Name, which is C:/Program Files/Borland/BDS/4.0/Imports by default, and can still be used in your code.

**
Be sure to save your package project. The .bdsproj file is your package’s project file, and the .bpl file is the compiled package.

==========================下面是我看了以后实验的具体步骤===========================

How can I install an external ActiveX control (.OCX file) in Delphi 2007 ?

Click File  > New  > Package    
Save the Package project.  
Click Component  > Import Component
Select Import ActiveX control.  
Select ActiveX-control in list or click Add and browse the for file.  
Fill in component details, like name and palette page.  
Optionally set unit directory to same location as where you saved the package project.
Optionally check Generate component wrappers.  
Select Add unit to Package and Finish.
Right click on the Package in Project manager to Build and Install package.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/146731.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • MVC三层架构各层含义[通俗易懂]

    MVC三层架构各层含义[通俗易懂]1.模拟架构图:2.Action/Service/DAO简介:Action是管理业务(Service)调度和管理跳转的。Service是管理具体的功能的。Action只负责管理,而Service负责实施。DAO只完成增删改查,虽然可以1-n,n-n,1-1关联,模糊、动态、子查询都可以。但是无论多么复杂的查询,dao只是封装增删改查。至于增删查改如何去实现一个功能,dao是不管…

    2022年6月25日
  • 运维架构体系

    运维架构体系 

    2022年7月17日
  • 串口调试助手fx2n_PLC串口调试助手「建议收藏」

    串口调试助手fx2n_PLC串口调试助手「建议收藏」PLC串口通信调试是一款免费的单片机串口调试的小工具,主要用于进行plc和计算机的串口通信调试,帮助用户快速发现是哪一方出现了问题,为单片机调试提供了新的解决方案,需要的朋友可以下载!软件功能(1)可以用3种数据格式输入要发送的帧和显示收、发的帧,各数据格式可以相互转换。(2)可以计算常用的校验码(异或、求和、CRC和LRC),生成PLC通信中常用的多种协议格式的帧,适用范围广。(3)具有记…

    2022年6月6日
  • 阿里云设置端口访问、使用_阿里云服务器端口号

    阿里云设置端口访问、使用_阿里云服务器端口号登录阿里云账号后,点击控制台点击自定义视图→再点击云服务器ECS点击实例id进入实例:点击本实例安全组:点击安全组id或者配置规则进入安全组规则配置界面,可以选择添加方式,这里以手动添加作为演示点击手动添加后,会出现添加栏,我们配置521端口,源选择0.0.0.0/0(意思是开放给所有人),最后点击保存放行端口就设置完毕了此外也可以从另一个地方进入本地实例安全组:(1)点击云服务器ECS后(上述步骤3)进入实例页面后,可以直接点击实例(2)选择自..

    2022年10月3日
  • Spring AOP中动态代理的两种实现方式及其过程_ajax工作原理及优缺点

    Spring AOP中动态代理的两种实现方式及其过程_ajax工作原理及优缺点AOP思想:基于代理思想,对原来目标对象,创建代理对象,在不修改原对象代码情况下,通过代理对象,调用增强功能的代码,从而对原有业务方法进行增强!

    2022年9月17日
  • 3D游戏建模的入门学习方法及技巧

    3D游戏建模的入门学习方法及技巧选一个你感兴趣的模型利用你感兴趣的任何物品或形象的预制模型。选一个可以激发你想象,让你知道清楚知道自己的模型该是什么样子,该怎么动的模型。你可以根据自己的喜好和需要加强现有模型。预制模型可以让你在开始建模之前,体验模型的检查和操作。从简单模型入手从复杂3D模型入手,你可能会备受打击。选一个简单的结构,然后开始学习。你不仅想要学会3D建模的基本知识,还需要慢慢学习掌握不同的工具、技巧。瓶子一样的圆柱体是一个很好的入门模型。或者你可以用更简单的立方体来熟悉所有工具技巧的用法。复杂模型可能会.

    2022年5月20日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号