🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VC to BCB

#10735
From: Remy Lebeau (TeamB)
Date: Tue, 23 Mar 2004 02:02
21 lines
1480 bytes
"Greg Stantin" <gstantin@stantonassoc.com> wrote in message
news:405f8871$1@newsgroups.borland.com...

> By looking at this function, can someone advise
> me on how to use this in bcb?

What exactly are you having a problems with?  That is C++ code, it will work
in BCB.  Please be more specific.

>   varColor.vt = VT_BSTR;
<snip>
>         varColor.lVal =
<snip>

You are setting the VARIANT to contain a BSTR but are then assigned it an
integer instead.  The vt member *must* match the data type that you are
actually storing into the VARIANT.


Gambit
Technical Details
Message-ID: <405f9896@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <405f8871$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2141ad895f4e297f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-22 18:09:41 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <405f8871$1@newsgroups.borland.com>
Subject: Re: VC to BCB
Date: Mon, 22 Mar 2004 18:02:56 -0800
Lines: 23
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: 67.22.138.253
Message-ID: <405f9896@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080006806 67.22.138.253 (22 Mar 2004 17:53:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail