Click to See Complete Forum and Search --> : How create COM object using GUID or CLSID


liolik
November 27th, 2002, 03:49 AM
Good day,

problem:
on a box installed two VS.NET 7.0 and 7.1 aka 2003
how I can get DTE object for 7.0 and for 7.1 if I know its GUIDs.


Thanx.

liolik
December 2nd, 2002, 09:08 AM
I did it, see code:

.....
DTE DTE70 = (DTE)Activator.CreateInstance( Type.GetTypeFromProgID("VisualStudio.DTE.7") );
.....

DTE DTE71 = (DTE)Activator.CreateInstance( Type.GetTypeFromProgID("VisualStudio.DTE.7.1") );

THANX.