<buzzluck68@hotmail.comwrote in message
news:1180983459.336466.6420@h2g2000hsg.googlegroup s.com...
Quote:
Hello,
>
I am having trouble upgrading my VB apps to .net. When i started at
my company there was a dll created here in vb6, and i need to use that
dll for many functions that would take too much time to re-create for
the limit that i am given. I have to create a new app in .net, per my
instructions, but the dll uses variant arrays, and i keep getting an
error whenever i pass an object array from my .net app to the vb6 dll
which needs to receive a variant array.
The ;ink talks about Variant being out in .NET. You might be able to pass a
type as Object.
http://www.windowsdevcenter.com/pub/...pasp_0401.html Quote:
>
The error "Specified array was not of the expected type." always
occurs. I do not know what else to do besides going into the dll
(which i have been told specifically not to touch as of this time
since there are too many other apps that use it.)
>
Any help in this matter would be greatly appreciated.
>
You might have to write this data out to a file or something. And with
another VB 6 COM component read that file and populate it in to a Variant
type and give that to the other COM component you're talking about.