This project has moved and is read-only. For the latest updates, please go here.

About VSpackage

Sep 15, 2009 at 4:32 AM

I can easily get  "DTE" in  ADD-IN , like"pApplication->QueryInterface(__uuidof(DTE2), (LPVOID*)&m_pDTE);"

How can I realize it in VSpackages?

Sep 17, 2009 at 11:43 PM
Edited Sep 17, 2009 at 11:44 PM

Easily. By calling Package.GetGlobalService(typeof(SDTE)). You need to cast the result to DTE

Sep 18, 2009 at 2:42 AM

TX for replied.  I've already realized it in C#.   How can i do it  in   VC2008

Sep 19, 2009 at 9:26 PM

The same static method should do it. Just translate the C# syntax to C++