Article View: borland.public.cppbuilder.nativeapi
Article #13174Re: Convert UCHAR * to AnsiString
From: Hans Galema
Date: Thu, 23 Oct 2003 13:46
Date: Thu, 23 Oct 2003 13:46
10 lines
1260 bytes
1260 bytes
Fernando wrote: > How can I convert a UCHAR * to an AnsiString? Just cast to char* before assigning. unsigned char ucharbuf [] = "whatever value the bytes might have"; AnsiString Buf = (char*)ucharbuf; Hans.
Technical Details
Message-ID:
<3f97daeb$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.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-mailReferences:
<tfffpvsct1otlhkov4mo7fbl7pr4mlaklt@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,87e36071473edd0f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-23 07:10:51 PST Date: Thu, 23 Oct 2003 15:46:07 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Convert UCHAR * to AnsiString References: <tfffpvsct1otlhkov4mo7fbl7pr4mlaklt@4ax.com> In-Reply-To: <tfffpvsct1otlhkov4mo7fbl7pr4mlaklt@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3f97daeb$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066916587 129.125.108.11 (23 Oct 2003 06:43:07 -0700) Lines: 11 Path: arc1-ca.pugleaf.net!archiver1.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