MFC:csting Intellisense:没有过载函数的实例
MFC: CSting IntelliSense: no instance of overloaded function
当我将int转换为cstring时,源代码如下
int count = 0;
CString msg;
msg.Format("%d", count); // error
错误杂物是
IntelliSense:没有超载函数的实例
" atl :: cstringt ::格式[带有
basetype = wchar_t,stringTraits = trtraitmfc_dll atl :: chtraitscrt>]"匹配参数列表
参数类型是:(const char [4])对象类型是:
cstring
如何解决此问题?
in _t()
中的"%d"msg.Format(_T("%d"), count);
相关文章:
- 如何在c++中为模板函数实例创建快捷方式
- 如何使用非默认构造函数实例化模板化类
- C++ - 使用另一个类的构造函数实例化一个对象
- 结构数组的构造函数错误,错误消息:没有构造函数实例与参数列表匹配
- 与参数匹配的友元模板函数实例化
- c++如何获取模板函数实例的地址
- 在保证复制的世界中构造函数实例化
- SFINAE 和模板函数实例化:为什么在启用了 SFINAE 类型的函数参数中使用模板参数时无法推断模板参数?
- 防止复制构造函数实例化 C++11 类"deleting"
- 如何键入定义一个专门的 std::set 模板,使用特定的比较函数实例化
- 没有 std::string .erase() 的重载函数实例
- C 矢量构造函数实例冲突
- 确保只有一个函数实例在运行?
- 使用不同类型的模板函数实例化
- C 调用模板构造函数实例化
- 没有与参数列表错误匹配的重载函数" "实例
- 为什么很清楚模板函数实例化不会内联
- 没有unordered_map的模板函数实例
- 模板函数实例化文件
- 模板函数实例化的可移植性问题