L
Lars von Wedel
Hello,
I have problems to implement a C# component which is called by a VB6
application through COM. A method Item accepts a variant as a parameter
which can contain either a string or an integer (as an index) to access a
collection.
In certain cases, the integer I extract from the variant is a System.Int32
and everything works fine. In other cases, however, the content is shown as
a System.Int16 (e.g. in the debugger) and it is not possible to convert it
to an int for example (an exception is thrown).
Any ideas about this?
Lars
I have problems to implement a C# component which is called by a VB6
application through COM. A method Item accepts a variant as a parameter
which can contain either a string or an integer (as an index) to access a
collection.
In certain cases, the integer I extract from the variant is a System.Int32
and everything works fine. In other cases, however, the content is shown as
a System.Int16 (e.g. in the debugger) and it is not possible to convert it
to an int for example (an exception is thrown).
Any ideas about this?
Lars