I have a problem when trying to use CString.
I have a console application written using VS2010Express. I have a piece of code I would like to use, but it uses CStrin
You could replace CString with CStdString
Yes it is right (CString is actually part of now-wedded MFC and ATL).
In almost all circumstances I found it trivial to translate the use of CString in som other string class (std::string comes to mind)
I'm not so sure whether the importing of typelibraries (#import) is fully supported in VSExpress, though. It could be - since COM is a binary standard and MIDL can generate pure C header files... but still :)