Click here to Skip to main content
15,900,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: New to MDI: dialogs Pin
*Dreamz8-Nov-05 23:38
*Dreamz8-Nov-05 23:38 
AnswerRe: New to MDI: dialogs Pin
Arman S.9-Nov-05 1:23
Arman S.9-Nov-05 1:23 
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 
   If your code always used the underlying string type's value_type, you would be always able to determine per-element size (and thus any buffer size requirements) correctly - there is no requirement that basic_string only contain narrow or wide character types:
typedef std::basic_string< int >    IntStr;
 
int                 iValue = 1024;
IntStr              isInt( &iValue );
const std::wstring  s2( L"unicode" );
const std::string   s1( "non unicode" );
const size_t        stByteSize1 = s1.size() * sizeof( std::string::value_type );   // 11
const size_t        stByteSize2 = s2.size() * sizeof( std::wstring::value_type );  // 14
const size_t        stByteSize3 = isInt.size() * sizeof( IntStr::value_type );     // 4
   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
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 
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 

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.