🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Eaven Easier - check this out...

#125
From: Julie
Date: Wed, 20 Dec 2000 14:03
35 lines
1747 bytes
Actualy, The easiest way is -

===================================

USES_CONVERSION;
CString s;
_variant_t var( A2W(s));

===================================

Tell me its not short....... :o)







"Fr�d�ric VIALLET" <fviallet@com1.fr> wrote in message
news:91o4be$pl$1@s1.read.news.oleane.net...
> hi,
>
> use : VC++ 6
>
> how to do to convert a CString into a VARIANT ?
> VARIANT v;
> v.bstrVal="toto";
>
> ??
>
> Thanks for help on the subject
>
> Fred
>
>
Technical Details
Message-ID: <uuZnp3oaAHA.2184@tkmsftngp05>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!newsfeed00.sul.t-online.de!t-online.de!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp05
References: <91o4be$pl$1@s1.read.news.oleane.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1138df,6492fccb20b167df
X-Google-Attributes: gid1138df,public
X-Google-Thread: f7a51,6492fccb20b167df
X-Google-Attributes: gidf7a51,public
X-Google-Thread: 104d65,6492fccb20b167df
X-Google-Attributes: gid104d65,public
X-Google-Thread: fdcad,6492fccb20b167df
X-Google-Attributes: gidfdcad,public
X-Google-Thread: 104971,6492fccb20b167df
X-Google-Attributes: gid104971,public
X-Google-ArrivalTime: 2000-12-20 06:08:45 PST
From: "Julie" <michal.arbel@contop.com>
References: <91o4be$pl$1@s1.read.news.oleane.net>
Subject: Eaven Easier - check this out...
Date: Wed, 20 Dec 2000 16:03:32 +0200
Lines: 37
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
Message-ID: <uuZnp3oaAHA.2184@tkmsftngp05>
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
NNTP-Posting-Host: elbit2-int.ser.netvision.net.il 199.203.89.153
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!newsfeed00.sul.t-online.de!t-online.de!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp05