HighTechTalks DotNet Forums  

VB6 Controls passed as __ComObject. Can I restore type?

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss VB6 Controls passed as __ComObject. Can I restore type? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Arghyle
 
Posts: n/a

Default 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!

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.