 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
ActuaryOne Guest
|
Posted: Tue May 15, 2007 10:09 pm Post subject: Adding ActiveX Control to BDS2006 C++[Help Craig!!] |
|
|
Craig Farrell has written some nice instructions for doing this in Delphi,
but I'm using BDS2006[Latest]/C++ flavor....
I go to install/commponent/activex/add2proj//finish...but now my project
just has a couple of tlb's and ocx files....I see nowhere to to install
anything -- so how do I get the ActiveX control onto my form...I'm surre I'm
missing a step...but Tamaracka search can't find it....thanks. |
|
| Back to top |
|
 |
Mark Guerrieri Guest
|
Posted: Wed May 16, 2007 8:13 pm Post subject: Re: Adding ActiveX Control to BDS2006 C++[Help Craig!!] |
|
|
| Quote: | Craig Farrell has written some nice instructions for doing this in Delphi,
but I'm using BDS2006[Latest]/C++ flavor....
I go to install/commponent/activex/add2proj//finish...but now my project
just has a couple of tlb's and ocx files....I see nowhere to to install
anything -- so how do I get the ActiveX control onto my form...I'm surre
I'm missing a step...but Tamaracka search can't find it....thanks.
|
Build that project (it will be a package) then install the package. The
components will then be available on the pallette.
Mark |
|
| Back to top |
|
 |
ActuaryOne Guest
|
Posted: Thu May 17, 2007 6:59 am Post subject: Re: Adding ActiveX Control to BDS2006 C++[Help Craig!!] |
|
|
Charles,
I am the tyro rather than the expert. However, what you have to do is:
· create and compile a new, empty package (Project|Add New
Project|Package). Name it and save it in an appropriate place but leave the
project open in BDS. Or you could just open an existing package project that
you wish to add it to. However, suggest you try the former first.
· Import the component: Component|Import Component|Import ActiveX
· Set up the palette page in the wizard - tell it which page of
components you want it to appear on.
· On the next page, you should be offered the choice: Create Unit OR
Add Unit to x.bdsproj Project. Choose the second option to add it to your
new package (x).
· You should see the new unit added to your package. Compile the
package again.
· Now install the package - right-click on the package name in the
project window and select 'Install'. The component should now be on the
palette page you specified. You can drag it on to a form in the normal way.
There will be slight differences to the above, if you are not using BDS - my
version is the Professional.
All of this works OK for me using the Adobe Acrobat ActiveX control but,
when I try to use the component in a simple app, the application bombs as
soon as it starts - it tries to transfer programme control into a memory
area containing rubbish. However, it seemed to work for the guy who
responded on the newsgroup. Maybe it is an issue with different versions of
BDS.
Please let me know how you get on.
Regards,
David
"ActuaryOne" <CharlesLeggette (AT) EarthLink (DOT) net> wrote in message
news:4649e932 (AT) newsgroups (DOT) borland.com...
| Quote: | Craig Farrell has written some nice instructions for doing this in Delphi,
but I'm using BDS2006[Latest]/C++ flavor....
I go to install/commponent/activex/add2proj//finish...but now my project
just has a couple of tlb's and ocx files....I see nowhere to to install
anything -- so how do I get the ActiveX control onto my form...I'm surre
I'm missing a step...but Tamaracka search can't find it....thanks.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|