🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: OLE drag and drop to Win Explorer

#14540
From: Alan Bellingham
Date: Mon, 11 Aug 2003 07:29
33 lines
2128 bytes
"Kiril Dunn" <kiril.dunn@ezifile.com> wrote:

>For anyone who may be interested, the bug was that I had:
>
>    FORMATETC fm = {
>        format,
>        NULL,
>        DVASPECT_CONTENT,
>        tymed
>    };
>
>In my IEnumFormatEtc implementation, instead of:
>
>    FORMATETC fm = {
>        format,
>        NULL,
>        DVASPECT_CONTENT,
>        -1,  // lindex
>        tymed
>    };
>
>I'm suprised Builder didn't warn me that I'd missed an element in the structure.

Do you know how much code would get warnings as a result?

No, it's a standard C & C++ initialisation thing - all remaining members
of a structure or array are initialised to 0 (or equivalent).

Alan Bellingham
-- 
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming               <url:http://accu.org/>
The 2004 Discworld Convention                   <url:http://dwcon.org/>
Technical Details
Message-ID: <9ahejvgtaj0j1dul9qb1ef8145nn0387fo@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f3312c3$1@newsgroups.borland.com> <3f3325da$1@newsgroups.borland.com> <3f333712$1@newsgroups.borland.com> <3f36f7ce$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9ab32f79cfce460e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-11 00:36:21 PST
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: OLE drag and drop to Win Explorer
Date: Mon, 11 Aug 2003 08:29:05 +0100
Reply-To: alanb@episys.com
Message-ID: <9ahejvgtaj0j1dul9qb1ef8145nn0387fo@4ax.com>
References: <3f3312c3$1@newsgroups.borland.com> <3f3325da$1@newsgroups.borland.com> <3f333712$1@newsgroups.borland.com> <3f36f7ce$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: 62.49.31.105
X-Trace: newsgroups.borland.com 1060586923 62.49.31.105 (11 Aug 2003 00:28:43 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail