Click here to Skip to main content
16,016,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem with timer Pin
enne8728-Sep-06 8:25
enne8728-Sep-06 8:25 
QuestionSimple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 10:46
ZapMe126-Sep-06 10:46 
AnswerRe: Simple evc++ exe to delete target files/folder for ppc Pin
Mohammad A Gdeisat26-Sep-06 11:01
Mohammad A Gdeisat26-Sep-06 11:01 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 11:27
ZapMe126-Sep-06 11:27 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
Mohammad A Gdeisat26-Sep-06 11:54
Mohammad A Gdeisat26-Sep-06 11:54 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 13:04
ZapMe126-Sep-06 13:04 
QuestionReading from UNICODE File Pin
AlekseyUS26-Sep-06 10:30
AlekseyUS26-Sep-06 10:30 
AnswerRe: Reading from UNICODE File Pin
Peter Weyzen26-Sep-06 12:36
Peter Weyzen26-Sep-06 12:36 
You must load the UNICODE text file into UNICODE strings:

<br />
wchar_t str[2000]; // character buffer of 2000 wchar_t's<br />


Then you need to load the UNICODE text from the file. I am not sure if the STL libraries handle this correctly...? I know they don't handle unicode filenames, but that's another topic.

After you load it, then you need to convert this to ANSI

<br />
USES_CONVERSION;<br />
file_out << "\n" << W2CA(str);<br />


Unfortunately, you'll run into a snag. The STL libraries are lame at handling unicode text in files. I take it you don't control these files -- I'd write them as UTF-8 format if I could. So much nicer... Smile | :)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc.</A>

AnswerRe: Reading from UNICODE File Pin
Waldermort26-Sep-06 13:05
Waldermort26-Sep-06 13:05 
AnswerRe: Reading from UNICODE File Pin
Taka Muraoka26-Sep-06 19:12
Taka Muraoka26-Sep-06 19:12 
AnswerRe: Reading from UNICODE File Pin
Hamid_RT26-Sep-06 21:59
Hamid_RT26-Sep-06 21:59 
QuestionRelease version / Pre-compiled header file (ios.pch) Pin
Reagan Conservative26-Sep-06 8:36
Reagan Conservative26-Sep-06 8:36 
QuestionRe: Release version / Pre-compiled header file (ios.pch) Pin
David Crow26-Sep-06 9:15
David Crow26-Sep-06 9:15 
AnswerRe: Release version / Pre-compiled header file (ios.pch) Pin
Reagan Conservative27-Sep-06 3:31
Reagan Conservative27-Sep-06 3:31 
AnswerRe: Release version / Pre-compiled header file (ios.pch) Pin
Anilkumar K V26-Sep-06 19:24
Anilkumar K V26-Sep-06 19:24 
QuestionModal Child of a modeless dialog donot hide Pin
pc_dev26-Sep-06 7:09
pc_dev26-Sep-06 7:09 
AnswerRe: Modal Child of a modeless dialog donot hide Pin
Maximilien26-Sep-06 8:14
Maximilien26-Sep-06 8:14 
GeneralRe: Modal Child of a modeless dialog donot hide Pin
pc_dev28-Sep-06 4:34
pc_dev28-Sep-06 4:34 
QuestionShared Memory as service and it needs to be accessed by all user id on windows 2000 or above. Pin
rengarajan7526-Sep-06 6:44
rengarajan7526-Sep-06 6:44 
QuestionDetermine associated program with file extension Pin
Mohammad A Gdeisat26-Sep-06 6:37
Mohammad A Gdeisat26-Sep-06 6:37 
QuestionRe: Determine associated program with file extension Pin
David Crow26-Sep-06 7:09
David Crow26-Sep-06 7:09 
AnswerRe: Determine associated program with file extension Pin
Mohammad A Gdeisat26-Sep-06 10:51
Mohammad A Gdeisat26-Sep-06 10:51 
Questiondebugger in visual c++ Pin
minkowski26-Sep-06 6:27
minkowski26-Sep-06 6:27 
AnswerRe: debugger in visual c++ Pin
Dimitris Vikeloudas26-Sep-06 6:41
Dimitris Vikeloudas26-Sep-06 6:41 
GeneralRe: debugger in visual c++ Pin
minkowski27-Sep-06 0:25
minkowski27-Sep-06 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.