Click here to Skip to main content
14,303,726 members

ATL / WTL / STL

 
Questionarray of static text controls Pin
bkelly1322-Jun-14 9:35
memberbkelly1322-Jun-14 9:35 
AnswerRe: array of static text controls Pin
Albert Holguin26-Jun-14 10:48
professionalAlbert Holguin26-Jun-14 10:48 
Questionneed help selecting a string type Pin
bkelly1313-Jun-14 4:27
memberbkelly1313-Jun-14 4:27 
AnswerRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 7:13
protectorRichard MacCutchan13-Jun-14 7:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 7:39
memberbkelly1313-Jun-14 7:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 21:31
protectorRichard MacCutchan13-Jun-14 21:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 9:47
memberbkelly1314-Jun-14 9:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 10:05
protectorRichard MacCutchan14-Jun-14 10:05 
bkelly13 wrote:
I was thinking of std::string
That would also be a valid choice, although be aware that std::string is ASCII only, for Unicode you need to use std::wstring. I tend to use a typedef to define my own type which will be ASCII or Unicode, dependiing on the project settings. Something like:
#if defined(UNICODE)
typedef	std::wstring	STRING;
#else
typedef	std::string	STRING;
#endif

Then I just use STRING everywhere in the rest of the code, and the compiler sorts it out for me.

From your comments above and the description of what your code is required to do, it seems that the choice is far less important than your first message implied.
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 15:53
memberbkelly1314-Jun-14 15:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 21:08
protectorRichard MacCutchan14-Jun-14 21:08 
Generalgoing heavy Pin
bkelly1316-Jun-14 13:49
memberbkelly1316-Jun-14 13:49 
GeneralRe: going heavy Pin
Richard MacCutchan16-Jun-14 21:24
protectorRichard MacCutchan16-Jun-14 21:24 
GeneralRe: need help selecting a string type Pin
Theo Buys6-Aug-15 5:31
memberTheo Buys6-Aug-15 5:31 
QuestionEnd a socket listen() operation Pin
bkelly133-Jun-14 8:26
memberbkelly133-Jun-14 8:26 
AnswerRe: End a socket listen() operation Pin
Albert Holguin5-Jun-14 9:41
professionalAlbert Holguin5-Jun-14 9:41 
GeneralRe: End a socket listen() operation Pin
bkelly1313-Jun-14 4:17
memberbkelly1313-Jun-14 4:17 
Questiondetect event in MFC dialog Pin
bkelly1331-May-14 11:51
memberbkelly1331-May-14 11:51 
AnswerRe: detect event in MFC dialog Pin
Richard MacCutchan31-May-14 21:00
protectorRichard MacCutchan31-May-14 21:00 
GeneralRe: detect event in MFC dialog Pin
bkelly131-Jun-14 1:06
memberbkelly131-Jun-14 1:06 
GeneralRe: detect event in MFC dialog Pin
Richard MacCutchan1-Jun-14 1:15
protectorRichard MacCutchan1-Jun-14 1:15 
GeneralRe: detect event in MFC dialog Pin
Randor 1-Jun-14 19:08
professional Randor 1-Jun-14 19:08 
GeneralRe: detect event in MFC dialog Pin
monitsystem2-Jun-14 6:44
membermonitsystem2-Jun-14 6:44 
GeneralRe: detect event in MFC dialog Pin
bkelly132-Jun-14 9:13
memberbkelly132-Jun-14 9:13 
AnswerRe: detect event in MFC dialog Pin
Albert Holguin5-Jun-14 9:49
professionalAlbert Holguin5-Jun-14 9:49 
GeneralRe: detect event in MFC dialog Pin
bkelly135-Jun-14 14:56
memberbkelly135-Jun-14 14:56 

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.