Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
GeneralRe: hello! help for SMSC class Pin
ftanriov10-Mar-04 6:52
ftanriov10-Mar-04 6:52 
GeneralRe: hello! help for SMSC class Pin
ftanriov10-Mar-04 6:57
ftanriov10-Mar-04 6:57 
GeneralInterop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 4:10
Eric Marchesin10-Mar-04 4:10 
GeneralRe: Interop with MSDev from a C# application Pin
Mazdak10-Mar-04 5:03
Mazdak10-Mar-04 5:03 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 7:21
Eric Marchesin10-Mar-04 7:21 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 6:36
protectorHeath Stewart10-Mar-04 6:36 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 7:33
Eric Marchesin10-Mar-04 7:33 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart10-Mar-04 9:57
protectorHeath Stewart10-Mar-04 9:57 
In order to get those properties, you must have a reference to the DTE object that the environment exposes. All those interfaces are contained in the EnvDTE assembly. While you won't be making a plugin, you'll still need that to get the objects and their properties within the environment. There is no way to get a reference to the DTE object with the information provided by the Process class.

You could, possibly, use Marshal.GetActiveObject("VsmIDE.DTE") to get an instance of the msdev.exe DTE object (msdev.exe is for Visual Studio 6, where devenv.exe is for VS.NET 7.0 and 7.1 currently), casting that to a DTE variable (if the process is alive, in which case it adds a moniker to the ROT). This may work, but it's untested.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin10-Mar-04 21:40
Eric Marchesin10-Mar-04 21:40 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart11-Mar-04 2:58
protectorHeath Stewart11-Mar-04 2:58 
GeneralRe: Interop with MSDev from a C# application Pin
Eric Marchesin11-Mar-04 22:56
Eric Marchesin11-Mar-04 22:56 
GeneralRe: Interop with MSDev from a C# application Pin
Heath Stewart12-Mar-04 3:05
protectorHeath Stewart12-Mar-04 3:05 
Generalraise event in another form Pin
laptop_0110-Mar-04 3:13
laptop_0110-Mar-04 3:13 
GeneralRe: raise event in another form Pin
John Fisher10-Mar-04 3:52
John Fisher10-Mar-04 3:52 
General.Net windows forms problem in c# Pin
libpcap200110-Mar-04 1:07
libpcap200110-Mar-04 1:07 
GeneralRe: .Net windows forms problem in c# Pin
Dave Kreskowiak10-Mar-04 1:22
mveDave Kreskowiak10-Mar-04 1:22 
GeneralRe: .Net windows forms problem in c# Pin
LongRange.Shooter10-Mar-04 3:28
LongRange.Shooter10-Mar-04 3:28 
GeneralExchage server 5.0 Pin
pushpi10-Mar-04 1:04
pushpi10-Mar-04 1:04 
GeneralRe: Exchage server 5.0 Pin
Corinna John10-Mar-04 3:13
Corinna John10-Mar-04 3:13 
GeneralCrystal Reports (9) Sorting hierarchy Pin
Mr. Labenche9-Mar-04 23:18
Mr. Labenche9-Mar-04 23:18 
GeneralRe: Crystal Reports (9) Sorting hierarchy Pin
Heath Stewart10-Mar-04 6:18
protectorHeath Stewart10-Mar-04 6:18 
Generalmultimedia files Pin
m_ramses9-Mar-04 22:50
m_ramses9-Mar-04 22:50 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 3:13
Mazdak10-Mar-04 3:13 
GeneralRe: multimedia files Pin
Heath Stewart10-Mar-04 6:14
protectorHeath Stewart10-Mar-04 6:14 
GeneralRe: multimedia files Pin
Mazdak10-Mar-04 6:22
Mazdak10-Mar-04 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.