函數定義。VC++ 6.0項目中的C2664錯誤轉換爲Visual C++ 2008
inline VARIANT_BOOL ISAXXMLReader::getFeature (unsigned short * pwchName) ;
調用它:
_bstr_t bstrFeature = featureName.c_str();
HRESULT hr = m_reader->getFeature(bstrFeature, &vfValue);
編譯errirs:
error C2664: 'MSXML2::ISAXXMLReader::getFeature' : cannot convert parameter 1
from '_bstr_t' to 'unsigned short *'
d:\formaanalyser_29_novixbrl_export_ct_600_negatelablel_word\formaanalyser\
xmlsupport\xmlparser.cpp 187
它在視覺6.0工作正常。