zoukankan      html  css  js  c++  java
  • CStringArray error C2248: 'CObject::CObject' : cannot access private member declared in class

      在开发中将一个字符串分割,并将子字符串保存在CStringArray中,专门写了一个函数,如下:

      SplitStringToCString(CString str, TCHAR tszSplit, CStringArray cstrArray);

      然而在调用的时候老是报错:CStringArray error C2248: 'CObject::CObject' : cannot access private member declared in class

      

      出现上述错误的原因是:CStringArray 不能被赋值构造函数调用

      解决方法:传引用进去

      SplitStringToCString(CString str, TCHAR tszSplit, CStringArray& cstrArray);

  • 相关阅读:
    缓存Cache
    RDD的行动操作
    redis数据库的配置
    requests的封装(user-agent,proxies)
    phantjs
    python多线程
    etree-xpath
    Flask
    Flask
    Flask
  • 原文地址:https://www.cnblogs.com/MakeView660/p/9896190.html
Copyright © 2011-2022 走看看