VARIANT vFilename;
CString strFilePath =_T("D:\\work\\doc\\22.docx");
VARIANT vFilename;
vFilename.vt = VT_BSTR;
vFilename.bstrVal = strFilePath.AllocSysString();
知识就是希望
CString strFilePath =_T("D:\\work\\doc\\22.docx");
VARIANT vFilename;
vFilename.vt = VT_BSTR;
vFilename.bstrVal = strFilePath.AllocSysString();