Results 1 to 4 of 4

Thread: Varaint Data Type From Vb

  1. #1

    Thread Starter
    Hyperactive Member Cmdr0Sunburn's Avatar
    Join Date
    May 2001
    Location
    g0t r00t?
    Posts
    461

    Varaint Data Type From Vb

    okay, how long in bytes is a VB VARIANT, and what are its parts, basicly i want to create a Varaiant type in asm/c++, or at least be able to accept varaints from vb in dlls etc, first i need to know how its structured.
    I know a lot oF Vb, expert in C++, and i think in assembly.
    MSVC++6.NET
    vb6
    masm
    Windowz Xp
    I find my self using this a lot in C++

    __asm {
    }

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    just something i bookmarked quite a while ago, hope you find it useful:
    http://msdn.microsoft.com/archive/de...n_article4.asp
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Search for data type _variant_t and _bstr_t.

    I think they come with ole2.h or oleaut2.h.
    VS.NET 2003

    Need to email me?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    VARIANT and VARIANTARG are the two aliases of the structure behind VBs Variants.

    Basically one unsigned int16 that can be set to one of many constants (the variable type, VT_*), three unsigned int16s as padding and for internal use and one large union.

    _variant_t is a class that simplifies usage of VARIANTs.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width