Article View: borland.public.cppbuilder.nativeapi
Article #11731Re: how can use ascii dos charset in memo control?
From: ScOe
Date: Wed, 21 Jan 2004 18:49
Date: Wed, 21 Jan 2004 18:49
27 lines
1823 bytes
1823 bytes
> Did you try OemToChar() and CharToOem()? It seems that these functions
> do what you need.
Yes. Still geting same result.
if (FileListBox1->Selected[i]) {
char str[255];
ifstream in(FileListBox1->Items->Strings[i].c_str ());
if (!in) {
return;
}
while (in) {
in.getline(str, 255);
char *szTemp = strdup (str);
CharToOem(str, szTemp);
Form1->RichEdit1->Lines->Add (szTemp);
}
in.close ();
Close();
}
RichEdit1 font is set to
charset: OEM_CHARSET
Name: Terminal
Pitch: fpDefault
Size: 9
>
> Michel
Technical Details
Message-ID:
<400ec9cf@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:
<400b17b7@newsgroups.borland.com> <vram00dvjm1cn0bpddhafucohai2hd1dsg@4ax.com> <400bdd21@newsgroups.borland.com> <m2vfn7n9or.fsf@madbox2.local> <400d75ca@newsgroups.borland.com> <m2wu7mgvvc.fsf@madbox2.local> <400e7421@newsgroups.borland.com> <400e7ca9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2a43cf053fcca89 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-21 11:10:56 PST From: "ScOe" <cbinders@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <400b17b7@newsgroups.borland.com> <vram00dvjm1cn0bpddhafucohai2hd1dsg@4ax.com> <400bdd21@newsgroups.borland.com> <m2vfn7n9or.fsf@madbox2.local> <400d75ca@newsgroups.borland.com> <m2wu7mgvvc.fsf@madbox2.local> <400e7421@newsgroups.borland.com> <400e7ca9$1@newsgroups.borland.com> Subject: Re: how can use ascii dos charset in memo control? Date: Wed, 21 Jan 2004 19:49:09 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 193.198.131.50 Message-ID: <400ec9cf@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074710991 193.198.131.50 (21 Jan 2004 10:49:51 -0700) 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