CComVariant中SAFEARRAY类型构造
CComSafeArray<char> *pSar;
CComSafeArrayBound bound[2];
bound[0].SetCount(3);
bound[0].SetLowerBound(0);
bound[1].SetCount(3);
bound[1].SetLowerBound(0);
// Create a new 2 dimensional array
// each dimension size is 3
pSar = new CComSafeArray<char>(bound,2);
const LPSAFEARRAY *pSafe=pSar->GetSafeArrayPtr();
CComVariant val(&pSafe);
就在最后一句,val就变成VT_BOOL类型的并不是VT_ARRAY类型?为啥,高手指点