Variant in DLL

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top