Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:34:10+00:00 2026-06-13T12:34:10+00:00

What are analogues for Delphi types TVarType and OleVariant in C/C++ ?

  • 0

What are analogues for Delphi types TVarType and OleVariant in C/C++ ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:34:11+00:00Added an answer on June 13, 2026 at 12:34 pm

    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)

    typedef struct tagVARIANT {
      _ANONYMOUS_UNION union {
        struct __tagVARIANT {
        VARTYPE vt;
        WORD wReserved1;
        WORD wReserved2;
        WORD wReserved3;
        _ANONYMOUS_UNION union {
            long lVal;
            LONGLONG llVal;
            unsigned char bVal;
            short iVal;
            float fltVal;
            double dblVal;
            VARIANT_BOOL  boolVal;
            SCODE scode;
            CY cyVal;
            DATE date;
            BSTR bstrVal;
            IUnknown *punkVal;
            LPDISPATCH pdispVal;
            SAFEARRAY *parray;
            unsigned char *pbVal;
            short *piVal;
            long *plVal;
            LONGLONG  * pllVal;
            float *pfltVal;
            double *pdblVal;
            VARIANT_BOOL *pboolVal;
            _VARIANT_BOOL  *pbool;
            SCODE *pscode;
            CY *pcyVal;
            DATE *pdate;
            BSTR *pbstrVal;
            IUnknown **ppunkVal;
            LPDISPATCH *ppdispVal;
            SAFEARRAY **pparray;
            struct tagVARIANT *pvarVal;
            void *byref;
            CHAR cVal;
            USHORT uiVal;
            ULONG ulVal;
            ULONGLONG ullVal;
            INT intVal;
            UINT uintVal;
            DECIMAL *pdecVal;
            CHAR  *pcVal;
            USHORT  *puiVal;
            ULONG  *pulVal;
            ULONGLONG * pullVal;
            INT  *pintVal;
            UINT  *puintVal;
            _ANONYMOUS_STRUCT struct {
                PVOID pvRecord;
                struct IRecordInfo *pRecInfo;
            } __VARIANT_NAME_4;
        } __VARIANT_NAME_3;
        } __VARIANT_NAME_2;
        DECIMAL decVal;
      } __VARIANT_NAME_1;
    } VARIANT,*LPVARIANT;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone point to good delphi component that is an analogue for java JSplitPane.
Are there any sane analogues to LINQ (.NET) exists for Scala?
Is there an analogue of Delphi TextRect in GDI? I looked at DrawText, DrawTextEx
Is there an analogue in winforms.net (C#) to Delphi's TDBNavigator control, that allows a
Is there any analogue for unix command substitution shell expansion? Like > cmd1 `cmd2
Is there analogue of Django Messages Framework (or RoR flash messages) in Java? http://docs.djangoproject.com/en/dev/ref/contrib/messages/
Does an analogue to Java's Math.rint exist in Python? If not, how can I
This is sort of the Java analogue of this question about C# . Suppose
Is there a git find analogue of git grep , i.e., something that will
i need to convert French text to most correct analogue in ASCII. Let me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.