🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: converting wstring into string

#12542
From: Moshe Shahar
Date: Tue, 02 Dec 2003 12:00
12 lines
1265 bytes

Try to use WideToAnsi ...

Fernando  <frr@easyjob.net> wrote:
>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: <3fcc8d09$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <nh0psvoru5i6r7rvm7l96sjeqm7skhuflg@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6822c151126682fa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-02 05:09:16 PST
From: "Moshe Shahar" <msachar@tiogatech.com>
Sender: "Moshe Shahar" <msachar@tiogatech.com>
Reply-To: "Moshe Shahar" <msachar@tiogatech.com>
Subject: Re: converting wstring into string
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 164.129.1.39     
X-Forwarded-For: unknown, unknown
References:  <nh0psvoru5i6r7rvm7l96sjeqm7skhuflg@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fcc8d09$1@newsgroups.borland.com>
Date: 2 Dec 2003 05:00:57 -0700
X-Trace: newsgroups.borland.com 1070370057 207.105.83.66 (2 Dec 2003 05:00:57 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail