Click here to Skip to main content
14,387,302 members

ATL / WTL / STL

 
Questionfriend declaration causes undeclared identifier Pin
bkelly1330-Jun-14 6:55
Memberbkelly1330-Jun-14 6:55 
AnswerRe: friend declaration causes undeclared identifier Pin
Subrat 470826612-Sep-14 16:20
MemberSubrat 470826612-Sep-14 16:20 
Questiondestructor not being called (Resolved) Pin
bkelly1326-Jun-14 17:17
Memberbkelly1326-Jun-14 17:17 
AnswerRe: destructor not being called Pin
Orjan Westin26-Jun-14 23:26
professionalOrjan Westin26-Jun-14 23:26 
GeneralRe: destructor not being called Pin
bkelly1327-Jun-14 14:06
Memberbkelly1327-Jun-14 14:06 
Questionarray of static text controls Pin
bkelly1322-Jun-14 10:35
Memberbkelly1322-Jun-14 10:35 
AnswerRe: array of static text controls Pin
Albert Holguin26-Jun-14 11:48
professionalAlbert Holguin26-Jun-14 11:48 
Questionneed help selecting a string type Pin
bkelly1313-Jun-14 5:27
Memberbkelly1313-Jun-14 5: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 8:13
mveRichard MacCutchan13-Jun-14 8:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 8:39
Memberbkelly1313-Jun-14 8:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 22:31
mveRichard MacCutchan13-Jun-14 22:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 10:47
Memberbkelly1314-Jun-14 10:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 11:05
mveRichard MacCutchan14-Jun-14 11:05 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 16:53
Memberbkelly1314-Jun-14 16:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 22:08
mveRichard MacCutchan14-Jun-14 22:08 
Generalgoing heavy Pin
bkelly1316-Jun-14 14:49
Memberbkelly1316-Jun-14 14:49 
GeneralRe: going heavy Pin
Richard MacCutchan16-Jun-14 22:24
mveRichard MacCutchan16-Jun-14 22:24 
GeneralRe: need help selecting a string type Pin
Theo Buys6-Aug-15 6:31
MemberTheo Buys6-Aug-15 6:31 
QuestionEnd a socket listen() operation Pin
bkelly133-Jun-14 9:26
Memberbkelly133-Jun-14 9:26 
AnswerRe: End a socket listen() operation Pin
Albert Holguin5-Jun-14 10:41
professionalAlbert Holguin5-Jun-14 10:41 
GeneralRe: End a socket listen() operation Pin
bkelly1313-Jun-14 5:17
Memberbkelly1313-Jun-14 5:17 
Questiondetect event in MFC dialog Pin
bkelly1331-May-14 12:51
Memberbkelly1331-May-14 12:51 
AnswerRe: detect event in MFC dialog Pin
Richard MacCutchan31-May-14 22:00
mveRichard MacCutchan31-May-14 22:00 
GeneralRe: detect event in MFC dialog Pin
bkelly131-Jun-14 2:06
Memberbkelly131-Jun-14 2:06 
GeneralRe: detect event in MFC dialog Pin
Richard MacCutchan1-Jun-14 2:15
mveRichard MacCutchan1-Jun-14 2: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.