Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Importing and ActiveX with Turbo Delphi Pro

114 views
Skip to first unread message

Rich Shealer

unread,
Oct 26, 2006, 2:18:45 PM10/26/06
to

Can you Import and ActiveX from the Borland Turbo Delphi 2006 Pro IDE?

I normally work with BDS Studio 2006 and Delphi 7. I have a project where we purchased Turbo Delphi 2006 Pro to provide to the client. I registered it today and started working with it by installing some of our standard internal components. No problem.

When I went to work with an updated OCX component, I tried to find the the Component/Import Component menu item and it is not there. There is no Type Library choice under View either.

Is it hidden in the options someplace? Has anyone seen a direct comparison between the BDS Delphi 2006 and Turbo Delphi 2006 Pro?

Rich S.

Craig Farrell

unread,
Oct 26, 2006, 4:55:54 PM10/26/06
to
Hi,

> Can you Import and ActiveX from the Borland Turbo Delphi 2006 Pro IDE?

I don't know about those edition differences but you
can always use the command line, e.g.
tlibimp.exe -C- -P+ -Ha+ -Hr+ -HpaActiveX -Ya+ <path>\controlname.ocx

-C- turns OFF C++ source code generation
-P+ turns ON Pascal source code generation
-Ha+ generates componet wrappers for controls
-Hr+ generates register code for the IDE package registration
-HpaActiveX sets the IDE palette name
-Ya+ turns ON ignoring problem flags like "No Create" being true

Then add the resultant .pas file(s) to a package
and install the package in the IDE.


--Craig

Rich Shealer

unread,
Oct 27, 2006, 10:33:41 AM10/27/06
to

Thanks you for the detailed option list Craig. It was a big
help.

I added the following option and the resulting files matched
what was done from the IDE previously.

-HpsActiveX sets the Server name
(What that means exactly I'm not sure)

Is there any specific documentation on the usage of TLibImp? A
tool like this that has been around for so long I would think
would have a help file entry by now.

Rich S.

Rich S.

unread,
Nov 3, 2006, 4:23:04 PM11/3/06
to

"Rich S." <Arby...@yahoo.com> wrote:
>When I went to work with an updated OCX component, I tried to
>find the the Component/Import Component menu item and it is
>not there. There is no Type Library choice under View either.

Borland responded with this work around:

Create an empty file named: ATLBASE.H
In this directory: $(BDS)\include\atl\

Turbo Delphi Pro now has the Component/Import Component and View/Type Library menu choices. Other than clicking the import
to see if the wizard starts, I have not tested its functionality.

I don't know why the menu items are enabled by testing for the Microsoft C++ based Active Template Library, but they are.

Rich S.

0 new messages