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.
> 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
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.
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.