MyException - 我的异常网
当前位置:我的异常网» VB » 怎么取得variant内含的数组的首元素的地址

怎么取得variant内含的数组的首元素的地址(2)

www.myexceptions.net  网友分享于:2013-04-10  浏览:3次

        SCODE                    scode;                    // VT_ERROR.
        CY                        cyVal;                    // VT_CY    .
        DATE                    date;                        // VT_DATE.
        BSTR                    bstrVal;                    // VT_BSTR.
        IUnknown                FAR* punkVal;            // VT_UNKNOWN.
        IDispatch             FAR* pdispVal;            // VT_DISPATCH.
        SAFEARRAY            FAR* parray;            // VT_ARRAY
------解决方案--------------------
*.
        unsigned char        FAR* pbVal;                // VT_BYREF
------解决方案--------------------
VT_UI1.
        short                    FAR* piVal;                // VT_BYREF
------解决方案--------------------
VT_I2.
        long                    FAR* plVal;                // VT_BYREF
------解决方案--------------------
VT_I4.
        float                    FAR* pfltVal;            // VT_BYREF
------解决方案--------------------
VT_R4.
        double                FAR* pdblVal;            // VT_BYREF
------解决方案--------------------

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有