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