|
-
December 12th, 2002, 08:14 AM
#1
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
-
December 12th, 2002, 09:05 AM
#2
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.
-
December 12th, 2002, 11:48 PM
#3
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
-
December 15th, 2002, 06:58 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|