
TOUGH Question - Late Bound COM objects and VB.NET
At least, tough to me.
Im cleaning up code that the VB.NET Upgrade Wizard created from a VB6
ActiveX DLL project. One of the methods accepts an Object object as a
parameter.
In this function, the client always sends a string. This string is then
converted to one of the objects in my library.
Ive tried casting it to the right object using CType, and that fails.
Ive tried changing the input parameter type to varianttype, and that fails.
I dont want to rewrite the method signature. It would mean rewriting a ton
of code. Basically all I want to do is convert the string object being
passed into the object I need.
How can I do this?