Variant in DLL

G

Guest

I have a vb 6 dll that uses a variant as one of its parameters. When I call it from vb.net executable, I get the following error: 'Variable uses an Automation type not supported by visual Basic'. I've tried casting the variable I pass to a generic object, but I still get the message

How do I get around this

Thanks
Eric
 
G

Guest

I've found that if I pass a long to this variant, I get the error
If I pass cint(lngVariable), i do not
Did the long variable change in vb.net? I thought it was only the regular int that did..

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top