Board index » cppbuilder » OLE In-Process Automation Server -- how to USE?

OLE In-Process Automation Server -- how to USE?

Greetings all!  I am new to BCB4, but have used Delphi in the past.
However, never with an OLE In-Process Server.  I have a .DLL and its
associated .TLB file, and I need to know how to perform the equivalent of
the Visual Basic (groans, I know) command "CreateObject".  For example, in
VB the following command:

Set OO4OSession = CreateObject("OracleInProcServer.XOraSession")

creates the object OO4OSession (this is Oracle Objects for OLE, by the way).
With that object, I can execute its methods to create a connection to an
Oracle database, execute queries, etc.  I don't need help with all that --
I've used OO4O in VB (and the class libraries in VC++5, but they aren't
supported for BCB) and am an Oracle DBA, comfortable with the rest of the
stuff.  What I don't know is the OLE/COM portion implementation in
C++Builder.  Most examples I can are about CREATING an ActiveX control -- I
just want to use this .DLL!

I'm loving C++Builder so far though -- but I'm about as far as I can get w/o
making my DB connection, and I'm going crazy looking for samples on the
'net.  I hear C++Builder Unleashed is a great book, but haven't had time to
get to the bookstore!

Many thanks,
(an email response would be greatly appreciated -- remove the "no-spam"
though)
--
Terry Porter
PP-ASEL
DFW, TX
--remove "no-spam-" to email me

 

Re:OLE In-Process Automation Server -- how to USE?


On Tue, 3 Aug 1999 20:28:56 -0500, "TerryP"

Quote
<no-spam-texpi...@yahoo.com> wrote:
>Greetings all!  I am new to BCB4, but have used Delphi in the past.
>However, never with an OLE In-Process Server.  I have a .DLL and its
>associated .TLB file, and I need to know how to perform the equivalent of
>the Visual Basic (groans, I know) command "CreateObject".  For example, in
>VB the following command:

>Set OO4OSession = CreateObject("OracleInProcServer.XOraSession")

You should use CreateOleObject function for IDispatch interface. For
any other interface you should use CreateComObject.

Other Threads