Use CString in console app when using VS Express

前端 未结 2 1154
既然无缘
既然无缘 2020-12-21 14:37

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

相关标签:
2条回答
  • 2020-12-21 15:16

    You could replace CString with CStdString

    0 讨论(0)
  • 2020-12-21 15:36

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

    0 讨论(0)
提交回复
热议问题