🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.mfc
Article #111

how to convert COleVariant into CString ?

#111
From: Fr�d�ric VIALLET
Date: Mon, 15 Jan 2001 11:14
11 lines
1736 bytes
Hi,

I use MFC + VC++6
I use the GetFieldValue() method of the CDaoRecordSet object.
This method fill in a COleVariant object with the result of the field.
My field being a string in my database , how to do to construct a CString
with the COleVariant ?

Thanks for help !

Fred
Technical Details
Message-ID: <93um25$rfp$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!195.25.12.36!oleane.net!oleane!nnrp.oleane.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1138df,ff3e18dc4524ede7,start
X-Google-Attributes: gid1138df,public
X-Google-Thread: 104971,ff3e18dc4524ede7,start
X-Google-Attributes: gid104971,public
X-Google-Thread: fdcad,ff3e18dc4524ede7,start
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 104d65,ff3e18dc4524ede7,start
X-Google-Attributes: gid104d65,public
X-Google-Thread: f7a51,ff3e18dc4524ede7,start
X-Google-Attributes: gidf7a51,public
X-Google-ArrivalTime: 2001-01-15 03:15:49 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!195.25.12.36!oleane.net!oleane!nnrp.oleane.net!not-for-mail
From: "Fr�d�ric VIALLET" <fviallet@com1.fr>
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,fr.comp.lang.c++,microsoft.public.vc.language,microsoft.public.vc.mfc,microsoft.public.vc.mfc.docview
Subject: how to convert COleVariant into CString ?
Date: Mon, 15 Jan 2001 12:14:20 +0100
Organization: COM1
Lines: 13
Message-ID: <93um25$rfp$1@s1.read.news.oleane.net>
NNTP-Posting-Host: ns.com1.fr
X-Trace: s1.read.news.oleane.net 979557254 28153 62.161.40.253 (15 Jan 2001 11:14:14 GMT)
X-Complaints-To: abuse@oleane.net
NNTP-Posting-Date: Mon, 15 Jan 2001 11:14:14 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400