🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

converting wchar_t * to const wchar_t *

#212
From: Sean Farrow
Date: Sun, 06 Jul 2008 16:48
9 lines
1160 bytes
How can I convert wchar_t * to const wchar_t *?
I'm trying to use the MultiByteToWideChar function with an std::wstring as 
the output string.
Any help aprediated.
The line of code is:
MultiByteToWideChar(CP_ACP, 0, __FUNC__, -1,DragonInfo.FunctionName.c_str(), 
DragonInfo.FunctionName.size());
Chers
Sean.
Technical Details
Message-ID: <4870f768$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,42b54d6e10712e77,start
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Sean Farrow" <sean.farrow@seanfarrow.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: converting wchar_t * to const wchar_t *
Date: Sun, 6 Jul 2008 17:48:40 +0100
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 88.97.13.95
Message-ID: <4870f768$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1215362920 88.97.13.95 (6 Jul 2008 09:48:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail