🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12019

using a com interface

#12019
From: Michael Powell
Date: Wed, 07 Jan 2004 03:33
20 lines
1643 bytes
Hello,

I have a COM interface I am developing. It is simple. It has a Counter
property, a Count() method, and a Reset() method.

It just so happens the interface will be used from Microsoft Visual C++. I
understand I can import the type library using "#import".

This much is happening, I can even declare an interface pointer
successfully. The code completion recognizes the member functions and
properties on the interface with no difficulties.

However, the build does not recognize what the interface pointer is. My
question is simple: how do I make the compiler recognize the type library
file?

Or is this another Borland versus Microsoft issue?

Regards,
Michael Powell
Technical Details
Message-ID: <3ffb7de0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9d6aae4341144f43,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-06 19:41:00 PST
From: "Michael Powell" <powellmw@comcast.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: using a com interface
Date: Tue, 6 Jan 2004 20:33:18 -0700
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 68.35.190.58
Message-ID: <3ffb7de0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073446368 68.35.190.58 (6 Jan 2004 19:32:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail