🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IShellFolder/IShellBrowser

#6489
From: eduardo
Date: Wed, 04 May 2005 05:36
23 lines
2209 bytes
Hi, group. I am posting my question here because this thread is exactly about what I'm trying to do.

I can't make the Type Library Editor to offer me the IShellFolder interface to add to my CoClass. I included shlobj.h by hand as it is defined there. But when I try to compile this very simple COM class, I get this error:

"Can't create instance because it is abstract: AddRef()=0"

Ok, so far so god. Then I add STDMETHOD_(ULONG,AddRef)(void) to myclass.h, or unsigned_long... 

but now, (here is my problem), I get this error.

Multiple definitions for AddRef in myClass.h, line 123
Earlier declaration of AddRef: atlcom.h, line 48.

But when I open this file, I find the replacement for min() there!!! Weird!!

Ok, I backup my atlcom.h file and proceed to delete those lines (I feel my compiler has gone berzerk and reports that line as it could be reporting any other line in the file). After deleting everything between #ifdef _NO_ALGORITHM_REPLACE, my compiler still complains about that very same line, which now contains completely different code.

I am ready to elaborate much more on this topic, as this is part of a project my organization is involved in. 

Please, TeamB & CppBuilder community, help.
Thanks in advance,
Eduardo
Technical Details
Message-ID: <42785f5b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422f3c55$1@newsgroups.borland.com> <422f4a50$3@newsgroups.borland.com> <422f57c2$1@newsgroups.borland.com> <422f5ffb$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91061a1c532985ac
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "eduardo" <glandegrande2001@hotmail.com>
Sender: "eduardo" <glandegrande2001@hotmail.com>
Reply-To: "eduardo" <glandegrande2001@hotmail.com>
Subject: Re: IShellFolder/IShellBrowser
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 201.255.96.43     
References: <422f3c55$1@newsgroups.borland.com> <422f4a50$3@newsgroups.borland.com> <422f57c2$1@newsgroups.borland.com> <422f5ffb$2@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42785f5b$1@newsgroups.borland.com>
Date: 3 May 2005 22:36:27 -0700
X-Trace: newsgroups.borland.com 1115184987 207.105.83.66 (3 May 2005 22:36:27 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail