Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is this a BUG? Pin
markkuk5-Nov-01 1:32
markkuk5-Nov-01 1:32 
Generalohh... So does this mean... Pin
5-Nov-01 4:17
suss5-Nov-01 4:17 
GeneralRe: ohh... So does this mean... Pin
Jamie Hale5-Nov-01 6:04
Jamie Hale5-Nov-01 6:04 
GeneralRe: ohh... So does this mean... Pin
markkuk5-Nov-01 20:42
markkuk5-Nov-01 20:42 
Generalstring, basic_string, stl and UNICODE Pin
Michael P Butler5-Nov-01 1:23
Michael P Butler5-Nov-01 1:23 
GeneralRe: string, basic_string, stl and UNICODE Pin
Tomasz Sowinski5-Nov-01 1:51
Tomasz Sowinski5-Nov-01 1:51 
GeneralRe: string, basic_string, stl and UNICODE Pin
Michael P Butler5-Nov-01 3:42
Michael P Butler5-Nov-01 3:42 
GeneralRe: string, basic_string, stl and UNICODE Pin
Tomasz Sowinski5-Nov-01 3:58
Tomasz Sowinski5-Nov-01 3:58 
So I have to do my only #ifdef UNICODE and define mystring as string or wstring?

Yes. Or you can go fancy and use TCHAR:
typedef basic_string<TCHAR, char_traits<TCHAR>, allocator<TCHAR> > mystring;


Is there any difference between the c_str method and the data method of string?

Yes - data() doesn't guarantee that you'll get the terminating null character. If the string is empty, data returns "a non-null pointer that cannot be dereferenced" according to docs that shipped with VC6


Tomasz Sowinski -- http://www.shooltz.com
QuestionPrinting specific area of the dialog form? Pin
Deian5-Nov-01 0:16
Deian5-Nov-01 0:16 
QuestionChange something on the other dialog? Pin
Rickard Andersson204-Nov-01 23:34
Rickard Andersson204-Nov-01 23:34 
AnswerRe: Change something on the other dialog? Pin
Tomasz Sowinski5-Nov-01 0:44
Tomasz Sowinski5-Nov-01 0:44 
AnswerRe: Change something on the other dialog? Pin
6-Nov-01 1:34
suss6-Nov-01 1:34 
GeneralDatabase exception Pin
Jimmy Ehrnström4-Nov-01 23:09
Jimmy Ehrnström4-Nov-01 23:09 
GeneralMemory Leak Queries! Pin
AJ1234-Nov-01 22:51
AJ1234-Nov-01 22:51 
QuestionCan we know the available memory at runtime? Pin
Dhanush4-Nov-01 22:29
professionalDhanush4-Nov-01 22:29 
AnswerRe: Can we know the available memory at runtime? Pin
Nish Nishant4-Nov-01 22:40
sitebuilderNish Nishant4-Nov-01 22:40 
AnswerRe: Can we know the available memory at runtime? Pin
Tomasz Sowinski4-Nov-01 22:56
Tomasz Sowinski4-Nov-01 22:56 
GeneralRe: Can we know the available memory at runtime? Pin
Dhanush10-Nov-01 1:25
professionalDhanush10-Nov-01 1:25 
Generalchanging the value of a recordset's property Pin
Yair Konfino4-Nov-01 22:26
Yair Konfino4-Nov-01 22:26 
GeneralColor Pin
Deian4-Nov-01 21:59
Deian4-Nov-01 21:59 
GeneralRe: Color Pin
Nish Nishant4-Nov-01 22:21
sitebuilderNish Nishant4-Nov-01 22:21 
GeneralRe: Color Pin
Eugene Pustovoyt4-Nov-01 22:31
Eugene Pustovoyt4-Nov-01 22:31 
GeneralRe: Color Pin
Joaquín M López Muñoz4-Nov-01 23:08
Joaquín M López Muñoz4-Nov-01 23:08 
GeneralRe: Color Pin
5-Nov-01 0:07
suss5-Nov-01 0:07 
GeneralSerialize problem Pin
bashi4-Nov-01 20:09
bashi4-Nov-01 20: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.