Download MATLAB BUILDER EX 1 User`s guide
Transcript
Data Conversion Rules VARIANT Type Codes Supported (Continued) Variant VARIANT Type Code (C/C++) C/C++ Type Type Code (Visual Basic) <anything>|VT_BYREF — — Visual Basic Type — Definition Bitwise combine VT_BYREF with any basic type to declare as a reference to a value + Denotes Windows-specific type. Not part of standard C/C++. The following table lists the rules for converting from MATLAB to COM. MATLAB to COM VARIANT Conversion Rules MATLAB Data Type VARIANT Type for VARIANT Type for Scalar Data Array Data cell A 1-by-1 cell array converts to a single VARIANT with a type conforming to the conversion rule for the MATLAB data type of the cell contents. A multidimensional cell array converts to a VARIANT of type VT_DISPATCH VT_DISPATCH structure Comments VT_VARIANT|VT_ARRAY with the type of each array member conforming to the conversion rule for the MATLAB data type of the corresponding cell. A MATLAB struct array is converted to an MWStruct object. (See “Class MWStruct” on page C-16.) This object is passed as a VT_DISPATCH type. B-5