Article View: borland.public.cppbuilder.nativeapi
Article #1579Re: Need a help, fopen and unicode
From: Eriks Aleksans
Date: Wed, 18 Jul 2007 15:01
Date: Wed, 18 Jul 2007 15:01
23 lines
1506 bytes
1506 bytes
Hi, Thanks for idea. I changed LPCSTR to wchar_t * and fopen( lpszFileName, "rb+" ) to _wfopen( lpszFileName, L"rb+" ) and now it works. Didn't even have to define UNICODE. BR Eriks Ed Mulroy [TeamB] wrote: > Just a guess but try using _wfopen instead and define UNICODE in the project > options. > > . Ed > >> Eriks Aleksans wrote in message >> news:469df4d2@newsgroups.borland.com... >> Hi, >> >> I need a help on this. >> Here's a peace of code from BladeMP3EncDLL.c (from lame-3.97 project)
Technical Details
Message-ID:
<469e2be3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<469df4d2@newsgroups.borland.com> <469e0b4f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2684d17de03f931d X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 18 Jul 2007 18:01:45 +0300 From: Eriks Aleksans <eriks.aleksans@gmail.com> User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Need a help, fopen and unicode References: <469df4d2@newsgroups.borland.com> <469e0b4f$1@newsgroups.borland.com> In-Reply-To: <469e0b4f$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 83.241.15.228 Message-ID: <469e2be3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184771043 83.241.15.228 (18 Jul 2007 08:04:03 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail