如何添加两个指针?

发布于 11-19 02:23 字数 315 浏览 3 评论 0原文

如何添加parameterBpictureName?我收到一条错误消息:“+”:无法添加两个指针。

  CString parameterA = _T("\"") + mycustompath + _T("identify.exe\"");  
  CString parameterB = _T(" -format \"%w\" ") + _T("\"") + mycustompath;
  CString parameterC = parameterB + pictureName + _T("\"");

How to add parameterB and pictureName? I got an error that says: '+': cannot add two pointers.

  CString parameterA = _T("\"") + mycustompath + _T("identify.exe\"");  
  CString parameterB = _T(" -format \"%w\" ") + _T("\"") + mycustompath;
  CString parameterC = parameterB + pictureName + _T("\"");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

奢欲2024-11-26 02:23:39

如果将所有 _T("...") 替换为 CString( _T("...") ) ,它将 100% 工作

if you replace all _T("...") with CString( _T("...") ) it will work 100%

心不设防2024-11-26 02:23:39

您应该从所有字符串文字中创建CString,然后它应该可以工作。

You should make CStrings out of all the string literals, then it should work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文