VB6 Controls passed as __ComObject. Can I restore type? -
05-04-2009
, 05:19 PM
Ok - I'm going to try to keep this simple:
I have a COM Callable Wrapper around a simple .NET component. Now
let's say I'm passing a VB6 Textbox into that .NET component. In
the .NET code, the TextBox has been wrapped in a System.__ComObject.
My question. . . anyone have an idea of how to turn it back into a VB
TextBox? I've found a post that shows how to use IDispatch to invoke
member functions, but that appears less than elegant.
CreateWrapperOfType() would obviously be ideal, but I need a valid
Type for that to work - but as far as I know, I don't have that.
Thanks! |