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

    Question Packing Variant into safearray

    Can anybody plz tell me how to pack variants into a safearray using VB and then this safearray as a variant to pass to a COM component????
    Thanks in advance!

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

  3. #3
    Join Date
    Dec 2002
    Location
    London, UK
    Posts
    1,569

    Re: Packing Variant into safearray

    what do you mean pack a variant into a safe array?

    VBs arrays are safe arrays, so you can just put the variant in there and pass that as required. But... VBs variant is a COM variant, and so you can use it to pass things around directly anyway if you like. No need to wrap stuff in safe arrays.
    Mike

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