CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2000
    Location
    Bangalore,India
    Posts
    776

    2-D SAFEARRAY of __int64

    I have a requirement of creating a 2 dimesional SAFEARRAY of __int64/hyper. I tried to make is using SafeArrayCreate() but could not succeed. If any body has worked on it pls send me a code snipate to create the safe array and store data in it.

    All codes/hints/suggestions are appreciated.

    thanks and regards.

    skpradhan

  2. #2
    Join Date
    Nov 2002
    Location
    Devon, UK
    Posts
    212
    SafeArrays can only contain the VT_ types and __int64 isn't among them I'm afraid - just the standard VB 8-byte-and-less types.
    Maybe you could try filling the safearray with __int64 pointers cast to longs? Sounds like a bomb waiting to go off but maybe worth a go.

    Good luck!
    Toot
    Some cause happiness wherever they go; others, whenever they go.

  3. #3
    Join Date
    Mar 2000
    Location
    Bangalore,India
    Posts
    776
    VT_I8 is there available in MIDL for a hyper data type(__int64). I know this does not comply to automation because VB does not have any data type of 8byte int. But my requirement is for VC users ,so i should be able to use VT_I8 type in SafeArrayCreate().

    pls give some pointer ,whether i m right or wrong?

    Regards
    santanu

  4. #4
    Join Date
    Mar 2002
    Location
    Izhevsk, Udmurtia, Russia
    Posts
    930
    pls give some pointer ,whether i m right or wrong?
    Give us a piece of code. And what error does SafeArrayCreate(VT_I8,...) return?
    With best wishes,
    Vita
    -----------------------
    Russian Software Development Network -- http://www.rsdn.ru

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