🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

conversion problem

#11448
From: Martin C
Date: Wed, 11 Feb 2004 21:31
12 lines
1191 bytes
Hi all,

I need to convert from AnsiString to WCHAR so I am using the following code
but I always get AV whenever I try to execute this code...so can someone
please tell me what exactly I am doing wrong here..

AnsiString TextNo1 = "1234567890";
WCHAR *abc;
TextNo1.WideChar(abc, sizeof(abc));


thank you all for your help and support...
Technical Details
Message-ID: <402b01e2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!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,ed7097c9ad2bbcef,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-11 20:40:08 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: conversion problem
Date: Wed, 11 Feb 2004 23:31:03 +0200
Lines: 14
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <402b01e2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076560354 81.10.4.238 (11 Feb 2004 20:32:34 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail