oldcomobject.ToString in C# :-)

  • Thread starter Thread starter JerryP
  • Start date Start date
J

JerryP

Hi Group,

I realy enjoy the great help that is given here - but I guess now I have a
real challenge:

I have an "old" vb6 com Object that has a methode ToString. Now if I
instanciate this object in C#
and call ToString() I get the FrameWork Version of the Methode - how can I
get the com Objects
ToString Methode ?

Thanks for any hints !

Jerry
 
JerryP said:
Hi Group,

I realy enjoy the great help that is given here - but I guess now I have a
real challenge:

I have an "old" vb6 com Object that has a methode ToString. Now if I
instanciate this object in C#
and call ToString() I get the FrameWork Version of the Methode - how can I
get the com Objects
ToString Methode ?

Thanks for any hints !

Jerry

Define a variable that is of the Interface type, not the MyComobjectClass
type. This interface will only have the methods of your COM object, and none
of the inherited members. This interface should have the ToString() version
you're looking for.


Arild
 
Thanks, for the hint!

Jerry

Arild Bakken said:
Define a variable that is of the Interface type, not the MyComobjectClass
type. This interface will only have the methods of your COM object, and none
of the inherited members. This interface should have the ToString() version
you're looking for.


Arild
 
Back
Top