Board index » cppbuilder » Calling ActiveX functions

Calling ActiveX functions

I have never use an ActiveX component with C++ Builder.  Can someone point
me to documentation that describes how that is done.

Thanks in advance,

William

 

Re:Calling ActiveX functions


Quote
William E. Mahaffey wrote:
> I have never use an ActiveX component with C++ Builder.  Can someone point
> me to documentation that describes how that is done.

> Thanks in advance,

> William

Online help could be a good place to start. <g>

Re:Calling ActiveX functions


Alex,

I have searched that online help, the Web, the provider of the ActiveX
component and I cannot find anything I can understand about getting started.
I have spent 5 to six hours trying to find something that I can understand.
I have the book C++ Builder How-To and it does not really cover what I need.
Is there a simple step by step example anywhere?  Maybe I am just a little
dense.

Thanks,

William

"Alex Bakaev [TeamB]" <z...@att.net> wrote in message
news:3D2C74D4.3040807@att.net...

Quote
> William E. Mahaffey wrote:
> > I have never use an ActiveX component with C++ Builder.  Can someone
point
> > me to documentation that describes how that is done.

> > Thanks in advance,

> > William

> Online help could be a good place to start. <g>

Re:Calling ActiveX functions


Quote
William E. Mahaffey wrote:
> Alex,

> I have searched that online help, the Web, the provider of the ActiveX
> component and I cannot find anything I can understand about getting started.
> I have spent 5 to six hours trying to find something that I can understand.
> I have the book C++ Builder How-To and it does not really cover what I need.
> Is there a simple step by step example anywhere?  Maybe I am just a little
> dense.

> Thanks,

> William

> "Alex Bakaev [TeamB]" <z...@att.net> wrote in message
> news:3D2C74D4.3040807@att.net...

>>William E. Mahaffey wrote:

>>>I have never use an ActiveX component with C++ Builder.  Can someone

> point

>>>me to documentation that describes how that is done.

>>>Thanks in advance,

>>>William

>>Online help could be a good place to start. <g>

Have you tried Componet|Imort ActiveX ? Here is a heading I found in the
online help just by typing activex in the index tab:

Using the Import ActiveX dialog.

Also, the (possible wraparound of the url)
http://www.amazon.com/exec/obidos/ASIN/0672319721/qid=1026334033/sr=2...

has a good chapter on COM/ActiveX

.a

Re:Calling ActiveX functions


Alex,

I have tried  "Componet|Imort ActiveX" and successfully attached the ActiveX
component but have not been able to successfully call the functions.  The
ActiveX component I am trying to use is just a library that has been
provided to be used with compilers other than VC++.  They have a VC++ static
library but of course it will not work with BCB.  All their examples for the
ActiveX control is for Visual Basic.  I have done quite a bit of basic
programming in the DOS world but never bothered to learn Visual Basic.
Delphi and BCB seem to be a much better way to go especially for an "Old" C
programmer.  Let me take a look at the link.  If I cannot figure out how to
get done what I need to do from that I will be back with more questions.

Thanks for your time and help,

William

"Alex Bakaev [TeamB]" <z...@att.net> wrote in message
news:3D2C9D21.6080209@att.net...

Quote
> William E. Mahaffey wrote:
> > Alex,

> > I have searched that online help, the Web, the provider of the ActiveX
> > component and I cannot find anything I can understand about getting
started.
> > I have spent 5 to six hours trying to find something that I can
understand.
> > I have the book C++ Builder How-To and it does not really cover what I
need.
> > Is there a simple step by step example anywhere?  Maybe I am just a
little
> > dense.

> > Thanks,

> > William

> > "Alex Bakaev [TeamB]" <z...@att.net> wrote in message
> > news:3D2C74D4.3040807@att.net...

> >>William E. Mahaffey wrote:

> >>>I have never use an ActiveX component with C++ Builder.  Can someone

> > point

> >>>me to documentation that describes how that is done.

> >>>Thanks in advance,

> >>>William

> >>Online help could be a good place to start. <g>

> Have you tried Componet|Imort ActiveX ? Here is a heading I found in the
> online help just by typing activex in the index tab:

> Using the Import ActiveX dialog.

> Also, the (possible wraparound of the url)

http://www.amazon.com/exec/obidos/ASIN/0672319721/qid=1026334033/sr=2...
sr_2_2/103-2777815-4470242

- Show quoted text -

Quote

> has a good chapter on COM/ActiveX

> .a

Re:Calling ActiveX functions


Alex,

I was wrong, I did not successfully add the ActiveX control.  When I try to
import the control, I first do an Add to try to get the control in the list
of Class Names.  I select Add and find the control, it is a dll, but it does
not show up in the list.  How do I get a Class Name to appear in the Class
Names list?  Am I correct ot assume that I cannot add it to an existing
Class?

Thanks,

William

"Alex Bakaev [TeamB]" <z...@att.net> wrote in message
news:3D2C9D21.6080209@att.net...

Quote
> William E. Mahaffey wrote:
> > Alex,

> > I have searched that online help, the Web, the provider of the ActiveX
> > component and I cannot find anything I can understand about getting
started.
> > I have spent 5 to six hours trying to find something that I can
understand.
> > I have the book C++ Builder How-To and it does not really cover what I
need.
> > Is there a simple step by step example anywhere?  Maybe I am just a
little
> > dense.

> > Thanks,

> > William

> > "Alex Bakaev [TeamB]" <z...@att.net> wrote in message
> > news:3D2C74D4.3040807@att.net...

> >>William E. Mahaffey wrote:

> >>>I have never use an ActiveX component with C++ Builder.  Can someone

> > point

> >>>me to documentation that describes how that is done.

> >>>Thanks in advance,

> >>>William

> >>Online help could be a good place to start. <g>

> Have you tried Componet|Imort ActiveX ? Here is a heading I found in the
> online help just by typing activex in the index tab:

> Using the Import ActiveX dialog.

> Also, the (possible wraparound of the url)

http://www.amazon.com/exec/obidos/ASIN/0672319721/qid=1026334033/sr=2...
sr_2_2/103-2777815-4470242

- Show quoted text -

Quote

> has a good chapter on COM/ActiveX

> .a

Re:Calling ActiveX functions


Quote
William E. Mahaffey wrote:
> Alex,

> I was wrong, I did not successfully add the ActiveX control.  When I try to
> import the control, I first do an Add to try to get the control in the list
> of Class Names.  I select Add and find the control, it is a dll, but it does
> not show up in the list.  How do I get a Class Name to appear in the Class
> Names list?  Am I correct ot assume that I cannot add it to an existing
> Class?

The control may have a problem, or the version of BCB you are using may
have a problem. I remember having exact same problem with the BCB5 and
IBM's speech AX control. Search this group for tlibimp - a command line
utility that may help you (by using command-line parameters you may
still import the control).

hth,
.a

Re:Calling ActiveX functions


Thanks,

William

"Alex Bakaev [TeamB]" <z...@att.net> wrote in message
news:3D2DCA24.7020806@att.net...

Quote
> William E. Mahaffey wrote:
> > Alex,

> > I was wrong, I did not successfully add the ActiveX control.  When I try
to
> > import the control, I first do an Add to try to get the control in the
list
> > of Class Names.  I select Add and find the control, it is a dll, but it
does
> > not show up in the list.  How do I get a Class Name to appear in the
Class
> > Names list?  Am I correct ot assume that I cannot add it to an existing
> > Class?

> The control may have a problem, or the version of BCB you are using may
> have a problem. I remember having exact same problem with the BCB5 and
> IBM's speech AX control. Search this group for tlibimp - a command line
> utility that may help you (by using command-line parameters you may
> still import the control).

> hth,
> .a

Other Threads