Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: New to MDI: dialogs Pin
vikas amin9-Nov-05 1:40
vikas amin9-Nov-05 1:40 
QuestionMCI Adjust Volume Problem Pin
Zyraph8-Nov-05 22:54
Zyraph8-Nov-05 22:54 
AnswerRe: MCI Adjust Volume Problem Pin
Blake Miller9-Nov-05 4:37
Blake Miller9-Nov-05 4:37 
QuestionStrange unicode rendering problem Pin
Luke Murray8-Nov-05 22:41
Luke Murray8-Nov-05 22:41 
AnswerRe: Strange unicode rendering problem Pin
Johann Gerell9-Nov-05 0:27
Johann Gerell9-Nov-05 0:27 
AnswerRe: Strange unicode rendering problem Pin
James R. Twine9-Nov-05 4:42
James R. Twine9-Nov-05 4:42 
GeneralRe: Strange unicode rendering problem Pin
Luke Murray9-Nov-05 11:53
Luke Murray9-Nov-05 11:53 
GeneralRe: Strange unicode rendering problem Pin
Johann Gerell9-Nov-05 21:01
Johann Gerell9-Nov-05 21:01 
I answered nitpickingly correct at first, but decided that it would be easier to read the answer if I used char/wchar_t and size_t, because your
const size_t stByteSize1 = s1.size() * sizeof(std::string::value_type);
const size_t stByteSize2 = s2.size() * sizeof(std::wstring::value_type);
is only half correct:
const std::string::size_type stByteSize1 = s1.size() * sizeof(std::string::value_type);
const std::wstring::size_type stByteSize2 = s2.size() * sizeof(std::wstring::value_type);
is correct. And now it's easy to see, for the sake of this exercise, that char/wchar_t and size_t makes reading and understanding easier. But still not correct.
James R. Twine wrote:
typedef std::basic_string< int > IntStr;


Ohhh... dangerous! Using that correctly to get expected results, means that you probably also need to have a char_traits specialization for int to get where you want.

--
The Blog: Bits and Pieces
GeneralRe: Strange unicode rendering problem Pin
James R. Twine10-Nov-05 8:05
James R. Twine10-Nov-05 8:05 
QuestionDisplay bitmap in toolbar with CStatic Pin
Mircea Grelus8-Nov-05 22:33
Mircea Grelus8-Nov-05 22:33 
AnswerRe: Display bitmap in toolbar with CStatic Pin
Mircea Grelus9-Nov-05 3:00
Mircea Grelus9-Nov-05 3:00 
QuestionDynamic double dimension Pin
Arrun8-Nov-05 22:01
Arrun8-Nov-05 22:01 
AnswerRe: Dynamic double dimension Pin
kakan8-Nov-05 22:23
professionalkakan8-Nov-05 22:23 
AnswerRe: Dynamic double dimension Pin
Cedric Moonen8-Nov-05 22:32
Cedric Moonen8-Nov-05 22:32 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:06
Arrun8-Nov-05 23:06 
AnswerRe: Dynamic double dimension Pin
kakan8-Nov-05 23:11
professionalkakan8-Nov-05 23:11 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:40
Arrun8-Nov-05 23:40 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:07
professionalkakan9-Nov-05 0:07 
QuestionRe: Dynamic double dimension Pin
Arrun9-Nov-05 0:27
Arrun9-Nov-05 0:27 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:32
professionalkakan9-Nov-05 0:32 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 2:13
professionalkakan9-Nov-05 2:13 
AnswerRe: Dynamic double dimension Pin
David Crow9-Nov-05 3:22
David Crow9-Nov-05 3:22 
Question(Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith8-Nov-05 21:41
sandakith8-Nov-05 21:41 
AnswerRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
James R. Twine9-Nov-05 4:50
James R. Twine9-Nov-05 4:50 
GeneralRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith9-Nov-05 16:12
sandakith9-Nov-05 16:12 

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.