Click here to Skip to main content
14,331,823 members

ATL / WTL / STL

 
Questionfriend declaration causes undeclared identifier Pin
bkelly1330-Jun-14 5:55
memberbkelly1330-Jun-14 5:55 
AnswerRe: friend declaration causes undeclared identifier Pin
Subrat 470826612-Sep-14 15:20
memberSubrat 470826612-Sep-14 15:20 
Questiondestructor not being called (Resolved) Pin
bkelly1326-Jun-14 16:17
memberbkelly1326-Jun-14 16:17 
AnswerRe: destructor not being called Pin
Orjan Westin26-Jun-14 22:26
professionalOrjan Westin26-Jun-14 22:26 
GeneralRe: destructor not being called Pin
bkelly1327-Jun-14 13:06
memberbkelly1327-Jun-14 13:06 
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 
Windows 7 and XP, Visual Studio 2008, 2010, C++, MFC, Windows 32 application.

I am getting frustrated with the various types of strings. With all the articles I find and often opposing points of view, I wish to limit my options and seek your opinion.

I write telemetry code that must run quite fast and move much data. The strings I deal with are mostly to log data so I can see how the code works. The end product will be a windows application that really needs no user interface.

However, during development, and because a vendor uses MFC and C++, I wish to develop in that environment. I have no desire to explicitly exclude other operating systems, but I really do not expect to use anything other than Windows XP and Windows 7 any times soon.

Which option is best: WCHAR, wchar_t, CString, char[], or something else?

edit: I forgot that WCHAR is just a typedef of wchar_t. Which does not seem very bright. Would it be wise to drop all use of WHAR and replace with wchar_t?
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com



modified 13-Jun-14 11:08am.

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 
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 

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.