【发布时间】:2011-05-29 18:08:09
【问题描述】:
我想让这个字符串的主机名部分成为可变的.. 目前,它只修复了这个 URL:
_T(" --url=http://www.myurl.com/ --out=c:\\current.png");
我想做这样的东西,所以网址是可变的..
_T(" --url=http://www." + myurl + "/ --out=c:\\current.png");
更新。以下是我的最新尝试:
CString one = _T(" --url=http://www.");
CString two(url->bstrVal);
CString three = _T("/ --out=c:\\current.png");
CString full = one + two + three;
ShellExecute(0,
_T("open"), // Operation to perform
_T("c:\\IECapt"), // Application name
_T(full),// Additional parameters
0, // Default directory
SW_HIDE);
错误是:Error 1 error C2065: 'Lfull' : undeclared identifier c:\test.cpp
【问题讨论】:
标签: c++ visual-c++ mfc