Instance EnvDTE.DTE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jindrich Hora

    #1

    Instance EnvDTE.DTE

    This code is in MSDN as example for attach to active instance EnvDTE.DTE.
    (example in C#)
    EnvDTE.DTE myDTE = (EnvDTE.DTE)
    System.Runtime. Interopservices .Marshal.GetAct iveObject("Visu alStudio.DTE");

    I run application and my VS.NET 2002 advise error in casting. Why ?

    Thanks for help.
    Jin.H.



Working...