Board index » delphi » Importing Type Library

Importing Type Library

    I tried to import a type library called "Microsoft ActiveX Data Object 2.1"
in Borland C++ Builder 4.0.   The IDE generated two files and added them to my
project.  I coded like this:
        Connection *cn=CoConnection::Create();
        cn->...
    It doesn't work properly.  The compiler didn't complain but when I run the
application, an error was reported.
I know little about COM. Can you help me with my problem?  I will appretiate a
sample.  
    Thank you in advance!
                                                                        Alfred
 

Re:Importing Type Library


Quote
Ubi wrote:
>     I tried to import a type library called "Microsoft ActiveX Data Object 2.1"
> in Borland C++ Builder 4.0.   The IDE generated two files and added them to my
> project.  I coded like this:
>    Connection *cn=CoConnection::Create();
>    cn->...
>     It doesn't work properly.  The compiler didn't complain but when I run the
> application, an error was reported.
> I know little about COM. Can you help me with my problem?  I will appretiate a
> sample.  
>     Thank you in advance!
>                                                                    Alfred

No I can't help you, because I don't know much about C/C++ as this is a
PASCAL newsgroup. Post your question in some C/C++ newsgroup. There
you'll find better answers. This is not meant personally.

Markus

Other Threads