Click here to Skip to main content
15,887,485 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionarray of static text controls Pin
bkelly1322-Jun-14 9:35
bkelly1322-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
bkelly1313-Jun-14 4:27 
AnswerRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 7:13
mveRichard MacCutchan13-Jun-14 7:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 7:39
bkelly1313-Jun-14 7:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 21:31
mveRichard MacCutchan13-Jun-14 21:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 9:47
bkelly1314-Jun-14 9:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 10:05
mveRichard 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:
C++
#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
bkelly1314-Jun-14 15:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 21:08
mveRichard MacCutchan14-Jun-14 21:08 
Generalgoing heavy Pin
bkelly1316-Jun-14 13:49
bkelly1316-Jun-14 13:49 
GeneralRe: going heavy Pin
Richard MacCutchan16-Jun-14 21:24
mveRichard MacCutchan16-Jun-14 21:24 
GeneralRe: need help selecting a string type Pin
Theo Buys6-Aug-15 5:31
Theo Buys6-Aug-15 5:31 
QuestionEnd a socket listen() operation Pin
bkelly133-Jun-14 8:26
bkelly133-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
bkelly1313-Jun-14 4:17 
Questiondetect event in MFC dialog Pin
bkelly1331-May-14 11:51
bkelly1331-May-14 11:51 
AnswerRe: detect event in MFC dialog Pin
Richard MacCutchan31-May-14 21:00
mveRichard MacCutchan31-May-14 21:00 
GeneralRe: detect event in MFC dialog Pin
bkelly131-Jun-14 1:06
bkelly131-Jun-14 1:06 
GeneralRe: detect event in MFC dialog Pin
Richard MacCutchan1-Jun-14 1:15
mveRichard 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
monitsystem2-Jun-14 6:44 
GeneralRe: detect event in MFC dialog Pin
bkelly132-Jun-14 9:13
bkelly132-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
bkelly135-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.