Y
Yong Yu
Dear All,
I have to move my VB code to C#. But I have no idea on the GetObject method
in Vb.
-----------------------------------------
Set dom = GetObject("WinNT://" & domain)
-----------------------------------------
This is easy for VB to get the object by COM monikor interface.
However, what I use the following code to active a object via monikor in c#,
what I got is a OBJECT Type.
----------------------------------------------
Marshal.BindToMoniker("WinNT://" + strDomain); //c# code
----------------------------------------------
Is there any way for me to KNOW the returned object type and case it to the
right type in .net???
Thanks very much!
-yy
I have to move my VB code to C#. But I have no idea on the GetObject method
in Vb.
-----------------------------------------
Set dom = GetObject("WinNT://" & domain)
-----------------------------------------
This is easy for VB to get the object by COM monikor interface.
However, what I use the following code to active a object via monikor in c#,
what I got is a OBJECT Type.
----------------------------------------------
Marshal.BindToMoniker("WinNT://" + strDomain); //c# code
----------------------------------------------
Is there any way for me to KNOW the returned object type and case it to the
right type in .net???
Thanks very much!
-yy