Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem including commctrl.h. Pin
John M. Drescher4-Jul-03 4:32
John M. Drescher4-Jul-03 4:32 
GeneralRe: Problem including commctrl.h. Pin
blackmesa4-Jul-03 4:34
blackmesa4-Jul-03 4:34 
GeneralRe: Problem including commctrl.h. Pin
John M. Drescher4-Jul-03 4:40
John M. Drescher4-Jul-03 4:40 
GeneralRe: Problem including commctrl.h. Pin
blackmesa4-Jul-03 4:42
blackmesa4-Jul-03 4:42 
GeneralRe: Problem including commctrl.h. Pin
Ryan Binns4-Jul-03 4:41
Ryan Binns4-Jul-03 4:41 
GeneralRe: Problem including commctrl.h. Pin
blackmesa4-Jul-03 4:45
blackmesa4-Jul-03 4:45 
GeneralRe: Problem including commctrl.h. Pin
Ryan Binns4-Jul-03 4:55
Ryan Binns4-Jul-03 4:55 
GeneralWide iostreams Pin
Taka Muraoka4-Jul-03 4:06
Taka Muraoka4-Jul-03 4:06 
You would think that the following bit of code would produce a 6-byte file:

wofstream f( "test.txt" ) ;
f << wstring( L"123" ) ;


But it doesn't. It produces a 3-byte file. A bit of experimentation indicates that the stream seems to be converting the wide characters to single-byte before writing it to the file. This also happens using Stlport (with their iostream library).

This seems just plain wrong. Anyone care to explain why it's like this?





Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live.

Awasu 1.1[^]: A free RSS reader with support for Code Project.

GeneralRe: Wide iostreams Pin
Michael Dunn4-Jul-03 5:17
sitebuilderMichael Dunn4-Jul-03 5:17 
GeneralRe: Wide iostreams Pin
Ryan Binns4-Jul-03 5:21
Ryan Binns4-Jul-03 5:21 
GeneralRe: Wide iostreams Pin
Taka Muraoka4-Jul-03 12:41
Taka Muraoka4-Jul-03 12:41 
GeneralRe: Wide iostreams Pin
Taka Muraoka4-Jul-03 13:00
Taka Muraoka4-Jul-03 13:00 
GeneralRe: Wide iostreams Pin
Taka Muraoka4-Jul-03 15:08
Taka Muraoka4-Jul-03 15:08 
Generalmemory leak Pin
pranavamhari4-Jul-03 3:31
pranavamhari4-Jul-03 3:31 
GeneralRe: memory leak Pin
John M. Drescher4-Jul-03 3:53
John M. Drescher4-Jul-03 3:53 
GeneralRe: memory leak Pin
pranavamhari4-Jul-03 19:05
pranavamhari4-Jul-03 19:05 
GeneralRe: memory leak Pin
John M. Drescher5-Jul-03 3:29
John M. Drescher5-Jul-03 3:29 
GeneralRe: memory leak Pin
John M. Drescher5-Jul-03 3:30
John M. Drescher5-Jul-03 3:30 
GeneralRe: memory leak Pin
pranavamhari5-Jul-03 20:58
pranavamhari5-Jul-03 20:58 
GeneralCOM passing Pin
Anthony98874-Jul-03 3:27
Anthony98874-Jul-03 3:27 
GeneralRe: COM passing Pin
valikac4-Jul-03 5:05
valikac4-Jul-03 5:05 
GeneralRe: COM passing Pin
Anthony98874-Jul-03 7:42
Anthony98874-Jul-03 7:42 
QuestionWhats true? MSDN or source code? Pin
Dominik Reichl4-Jul-03 2:12
Dominik Reichl4-Jul-03 2:12 
AnswerRe: Whats true? MSDN or source code? Pin
Ryan Binns4-Jul-03 2:16
Ryan Binns4-Jul-03 2:16 
GeneralRe: Whats true? MSDN or source code? Pin
Dominik Reichl4-Jul-03 2:23
Dominik Reichl4-Jul-03 2:23 

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.