🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: COM object creation code

#9578
From: Bob Gonder
Date: Mon, 05 Jul 2004 06:58
26 lines
1751 bytes
Ramon F Herrera wrote:

>valid and proper C++.  Yet, it won't compile for me.
>Perhaps I need some #include?

Yes, quite likely.

>> 
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/shellcolhand.asp 
>> class CByteSize : public IUnknown,
>>                   public IPersist,
>>                   public IColumnProvider
>> {
>      [C++ Error] CByteSize.cpp(3): E2303 Type name expected

You are missing the definitions for
 IUnknown,
 IPersist,  and
 IColumnProvider

Putting IPersist in the MSDN Search,  brings me to 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/htm/cmi_n2p_3lbo.asp?frame=true
Where it says:
Header: Declared in objidl.h.

You should be able to do likewise for the other 2 classes.
Technical Details
Message-ID: <6juhe09rbt121geadn0f0aoneroi1380m5@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40e8b226$1@newsgroups.borland.com> <40e8c24d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c9af22da94edfce4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: COM object creation code
Date: Sun, 04 Jul 2004 23:58:23 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <6juhe09rbt121geadn0f0aoneroi1380m5@4ax.com>
References: <40e8b226$1@newsgroups.borland.com> <40e8c24d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.40.245.85
X-Trace: newsgroups.borland.com 1089010700 65.40.245.85 (4 Jul 2004 23:58:20 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail