M
marfi95
I'm trying to call a 3rd party ocx from my vb.net app. I've added the
ocx by customizing the toolbox so the interop references get added
automatically. However, when I make a call to the ocx, I get a
COMException: Type Mismatch error. As far as I know, I'm passing the
string as follows:
Dim str as string
dim rc as integer
rc = oread.getversion(str) <--- gets type mismatch
The method does expect a string passed BYREF. Am I doing something
wrong ?
Any ideas ?
Thanks,
Mark
ocx by customizing the toolbox so the interop references get added
automatically. However, when I make a call to the ocx, I get a
COMException: Type Mismatch error. As far as I know, I'm passing the
string as follows:
Dim str as string
dim rc as integer
rc = oread.getversion(str) <--- gets type mismatch
The method does expect a string passed BYREF. Am I doing something
wrong ?
Any ideas ?
Thanks,
Mark