What are analogues for Delphi types TVarType and OleVariant in C/C++ ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, clearly from their own documentation – the first is simply an unsigned word – a uint_16.
The second is a little more difficult to explain. It’s basically a great big struct that contains a whole bunch of fields. This one data type includes a field for each data-type that could be transferred to/from a COM object. This means you just need to concern yourself with passing a variant to/from the object. It’s then up to each of you (programmer/COM object) to extract/insert data at the relevant places.
Perhaps I shouldn’t, but here’s the definition for a VARIANT from oaidl.h (gcc, win32)