#ifndef _SAFEARRAYHELPER_H_ #define _SAFEARRAYHELPER_H_ class CSafeArrayHelper { public: CSafeArrayHelper(); ~CSafeArrayHelper(); bool Create(VARTYPE vt, UINT cDims, UINT lBound, UINT cCount); bool Destroy(); UINT GetDimension(); bool Attach(LPSAFEARRAY psa); bool AttachFromVariant(VARIANT* pVariant); LPSAFEARRAY Detach(); LPSAFEARRAY GetArray(); bool AccessData(void FAR* FAR* pvData); bool UnaccessData(); bool Lock(); bool Unlock(); bool PutElement(long lIndices, void FAR* vData); bool GetElement(long lIndices, void FAR* vData); VARIANT GetAsVariant(); protected: LPSAFEARRAY m_pSA; private: }; #endif // _SAFEARRAYHELPER_H_
1>g:\c++_code\driver1\safearrayhelper.h(10): error C2061: 语法错误: 标识符"VARTYPE" 1>g:\c++_code\driver1\safearrayhelper.h(12): error C2146: 语法错误: 缺少";"(在标识符"GetDimension"的前面)
_SAFEARRAYHELPER_H_
VARTYPE
LPSAFEARRAY
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)