Hi ,
I am getting a peculiar error while trying to reference "Envdte" and
create object of it.I am able to add the reference without any problem but i
get COM object not registered error when i try to instansiate even though
its registered and also found it in the GAC I am using 2003 ..Did anyone
encounter this error earlier.
Any help is highly appreciated!!
Rgds
Ravikanth[MVP] - 27 Apr 2004 14:41 GMT
H
2003 DTE cannot be recreated the same way as in 2002. The correct way t
create 2003 DTE is through .Net reflection. First get the type instanc
System.Type t = System.Type.GetTypeFromProgID("VisualStudio.DTE.7.1")
Then you can create DTE in a handful ways .Net supports. For example throug
Activato
object obj = System.Activator.CreateInstance(t, true)
EnvDTE.DTE dteObject = (EnvDTE.DTE)obj
HT
Ravikanth[MVP