Click here to Skip to main content
15,887,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani3-Aug-10 19:15
Joseph Marzbani3-Aug-10 19:15 
GeneralRe: what is "wofstream" useful for?!! Pin
«_Superman_»3-Aug-10 20:02
professional«_Superman_»3-Aug-10 20:02 
GeneralRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani3-Aug-10 22:02
Joseph Marzbani3-Aug-10 22:02 
GeneralRe: what is "wofstream" useful for?!! Pin
Aescleal3-Aug-10 22:15
Aescleal3-Aug-10 22:15 
GeneralRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani3-Aug-10 22:47
Joseph Marzbani3-Aug-10 22:47 
GeneralRe: what is "wofstream" useful for?!! Pin
Aescleal4-Aug-10 0:32
Aescleal4-Aug-10 0:32 
GeneralRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani4-Aug-10 2:03
Joseph Marzbani4-Aug-10 2:03 
AnswerRe: what is "wofstream" useful for?!! Pin
Aescleal3-Aug-10 22:05
Aescleal3-Aug-10 22:05 
It can be used with wide characters, no problem at all. The C++ 98 standard library assumes that all filenames are narrow characters so the first line you've presented won't compile on a standard conforming compiler - however some compilers provide the second form as an extension to the library. What's particularly brain-dead about the constructors are the fact that they take C style strings and not std::basic_strings, but that's another story.

The line you've presented works perfectly - it handles wide characters pretty well in my experience. What it stores them in the file doesn't really matter (as far as the standard library is concerned) provided you can read them back in the same form.

Cheers,

Ash
GeneralRe: what is "wofstream" useful for?!! Pin
Joseph Marzbani3-Aug-10 22:53
Joseph Marzbani3-Aug-10 22:53 
GeneralRe: what is "wofstream" useful for?!! Pin
Richard MacCutchan4-Aug-10 3:26
mveRichard MacCutchan4-Aug-10 3:26 
QuestionTooltips can't be shown Pin
gaspher3-Aug-10 2:47
gaspher3-Aug-10 2:47 
QuestionRe: Tooltips can't be shown Pin
David Crow3-Aug-10 3:18
David Crow3-Aug-10 3:18 
AnswerRe: Tooltips can't be shown Pin
gaspher3-Aug-10 3:37
gaspher3-Aug-10 3:37 
GeneralRe: Tooltips can't be shown Pin
David Crow3-Aug-10 3:43
David Crow3-Aug-10 3:43 
QuestionHandling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 0:54
MuraliKrishnaP3-Aug-10 0:54 
AnswerRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 1:10
Aescleal3-Aug-10 1:10 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:32
MuraliKrishnaP3-Aug-10 2:32 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP3-Aug-10 2:43
MuraliKrishnaP3-Aug-10 2:43 
GeneralRe: Handling Abort for Long running operations in MFC Pin
Aescleal3-Aug-10 5:31
Aescleal3-Aug-10 5:31 
GeneralRe: Handling Abort for Long running operations in MFC Pin
MuraliKrishnaP6-Aug-10 10:03
MuraliKrishnaP6-Aug-10 10:03 
AnswerRe: Handling Abort for Long running operations in MFC Pin
«_Superman_»3-Aug-10 15:57
professional«_Superman_»3-Aug-10 15:57 
Questionproblem using ShellExecute to open folder Pin
Rahul Vaishnav2-Aug-10 23:51
Rahul Vaishnav2-Aug-10 23:51 
AnswerRe: problem using ShellExecute to open folder PinPopular
enhzflep3-Aug-10 0:10
enhzflep3-Aug-10 0:10 
GeneralRe: problem using ShellExecute to open folder Pin
Rahul Vaishnav3-Aug-10 0:14
Rahul Vaishnav3-Aug-10 0:14 
AnswerRe: problem using ShellExecute to open folder Pin
Shivanand Gupta5-Aug-10 1:09
Shivanand Gupta5-Aug-10 1:09 

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.