Article View: borland.public.cppbuilder.internationalization
Article #72Re: How do I open a file?
From: Muzaffar Mahkamov
Date: Tue, 20 Sep 2005 09:48
Date: Tue, 20 Sep 2005 09:48
14 lines
1674 bytes
1674 bytes
LesleyAnne wrote: > This may be a stupid question. I'm not even trying to do what I think of as > an international application, since the file I'm working with is just simple > ASCII text. My problem is that I want to be able to open it regardless of > what folder it's in. The simple straightforward way of opening a file: > if (OpenDialog1->Execute()) > iFileHandle = FileOpen(OpenDialog1->FileName, fmOpenRead); > fails any time any folder in the file's path includes Japanese characters. > So how am I supposed to do that if the file's path and name can have any > characters that Windows allows to be in a pathname? > > Use WideFileOpen() from TNT Unicode components or CreateFileW() WinAPI function.
Technical Details
Message-ID:
<432fdb35@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<431f600b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,6f6a223e3b32517 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 20 Sep 2005 14:48:14 +0500 From: Muzaffar Mahkamov <muzaffar@design.uz> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internationalization Subject: Re: How do I open a file? References: <431f600b@newsgroups.borland.com> In-Reply-To: <431f600b@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 195.158.30.197 Message-ID: <432fdb35@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127209781 195.158.30.197 (20 Sep 2005 02:49:41 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail