CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    2

    How to get size of a given variant var?

    Just wondering if anybody has a routine or knows of a function that will let me know how many bytes a variant variable is taking, or how many bytes the 'variable' part of the variant is taking? (Any then I'll add the fixed portion). Thank you...


  2. #2
    Join Date
    May 1999
    Posts
    12

    Re: How to get size of a given variant var?

    The size of the variant depends on what type it contains. so first access the type in the
    the variant structure. then you can easily determine the size of the variable


  3. #3
    Join Date
    May 1999
    Posts
    2

    Re: How to get size of a given variant var?

    Thanks. I knew that much but I figured someone may have written a generic function to do this. I guess I'll write one up, although I'm only handling a few different types of variants so it will be limited.


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

Featured