🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

converting wstring into string

#12540
From: Fernando
Date: Tue, 02 Dec 2003 12:18
7 lines
1187 bytes
Hi,

I'm writing a dll that will be used by VB. One of tghe functions receives a VB
string (a BSTR) as a parameter that willbe used by some MAPI functions.

The problem is that BSTRs are unicode and AFAIK MAPI doesn't expect addresses
to be in Unicode.  How can I convert it into single byte encoding?
Technical Details
Message-ID: <nh0psvoru5i6r7rvm7l96sjeqm7skhuflg@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6822c151126682fa,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-02 04:39:13 PST
From: Fernando  <frr@easyjob.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: converting wstring into string
Date: Tue, 02 Dec 2003 13:18:17 +0100
Organization: www.EasyJob.NET
Message-ID: <nh0psvoru5i6r7rvm7l96sjeqm7skhuflg@4ax.com>
X-Newsreader: Forte Agent 1.9/32.560
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.127.66.80
X-Trace: newsgroups.borland.com 1070367506 217.127.66.80 (2 Dec 2003 04:18:26 -0700)
Lines: 7
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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