Hi
If you mean the API function GetObject of the Gdi32.lib , then that you
can use with both vb and C# . you can use the DllImport to use it either
in C# or VB.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
No,I mean GetObject method in VB to get an instance of Com object.
the singnature of GetObject in vb as follow
Public Function GetObject( _
Optional ByVal PathName As String = Nothing, _
Optional ByVal Class As String = Nothing _
) As ObjectI need a method like that in C#"Mohamoss"
You can use the Type.GetTypeFromCLSID method to get a type for your COM
object, and then use Activator.CreatInstance to create an instance of
the type.