【问题标题】:Replacing CString in mingw compiler for eclipse在 eclipse 的 mingw 编译器中替换 CString
【发布时间】:2013-09-28 12:58:00
【问题描述】:

我有一些相对较大的代码,但其中有一部分使用了名为 CString (http://msdn.microsoft.com/en-us/library/aa300688%28v=vs.60%29.aspx) 的东西。现在我在 eclipse 上使用 mingw 编译器,它似乎无法识别它,这是有道理的。但我需要使用代码的另一部分。我知道我可以用 const char * 替换 CString,但是有几个像 append 这样的函数,代码使用的这些函数没有定义。我想知道移植此代码的最佳方法是什么?还有其他 stdafx.h 依赖项也像 _T()。我现在应该采取的最佳方法是什么?

【问题讨论】:

    标签: c++ eclipse


    【解决方案1】:

    CodeProject 上有一个 CString 替换。我刚刚搜索了“CString 替代方案”。我没有看过它,但它应该更容易使用而不是std::string

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-17
      • 2016-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-17
      • 1970-01-01
      相关资源
      最近更新 更多