
Variable uses Automation type not supported in Visual Basic
Hi,
I'm trying to include a third-party OCX control in my VB6 project.
(I think) It was written in C/C++ making use of COM programming and compiled with the MIDL compiler.
From inside VB6 design environment, opening the object browser, same properties show an "unsupported variant type" and, most of all, when I run my program and try to set the value of the OCX object properties, I encounter a "Variable uses Automation type non supported in Visual Basic" error.
This problem seems to be related to data type compatibility between the MIDL compiler and VB: I have found several references to this MS document "PRB: Visual Basic and Visual Basic for Applications Do Not Understand IUnknown** Data Type in MIDL Type Library (Q194913)"
As I can't modify the OCX component, I'm looking for something that lets me use the unsupported data types from VB6.
Any help will be apreciated.
Alberto Mensi