thenrich
asked on
Variant Data Type
I have a need to dimension an array as a variant array to be accepted by an older ActiveX server application that I'm using. Since the Variant data type is no longer supported what can I pass the the server to 'trick it' into thinking it's receiving a variant array?
ASKER
I tried that - no success...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is an excellent resource for all issues related to interop:
http://www.dotnetinterop.com/
Microsoft realized many developers were having issues with interop, so they created this site just for related issues.
---
I think you guys are missing that thenrich is trying to pass a variant array, that is say, an array of variants. The problem is not what single object to pass, but what parts should the object be composed of in order to marshall to a VB6 array of variants.
Is that correct, thenrich?
---
thenrich,
You may need to determine how the array of variants is represented in memory, and then to something like in this article:
"How do I call a function that returns a pointer to an array of structures?"
http://www.dotnetinterop.com/faq/?q=CalleeAllocatedStructArray
http://www.dotnetinterop.com/
Microsoft realized many developers were having issues with interop, so they created this site just for related issues.
---
I think you guys are missing that thenrich is trying to pass a variant array, that is say, an array of variants. The problem is not what single object to pass, but what parts should the object be composed of in order to marshall to a VB6 array of variants.
Is that correct, thenrich?
---
thenrich,
You may need to determine how the array of variants is represented in memory, and then to something like in this article:
"How do I call a function that returns a pointer to an array of structures?"
http://www.dotnetinterop.com/faq/?q=CalleeAllocatedStructArray
AW