Hello, I have several Visual Studio 2005 instances running, and I need to connect to one of them using C#, how can I do that? Thanks.
> I have several Visual Studio 2005 instances running, and I need to > connect to one of them using C#, how can I do that? I'm not sure what you're trying to achieve here. Could you elaborate a bit? Are you trying to connect from one instance to another? Torben
Each instance of Visual Studio used to register itself in the ROT (Running Object Table). Although it used to use the ClassID which would be the same for each instance .. a bit tough to distinguish between them. If that hasn't changed you can have an addin ... when it is loaded by each instance of VS ... you can have your addin register itself in teh ROT using something unique like the processID or whatever. Then any client can query the ROT for your unique moniker and connect to it. See docs for the ROT etc. -jeff "Peter Zhou" <bokesoft@newsgroup.nospam> wrote in message news:uREO%23G1yIHA.2188@TK2MSFTNGP04.phx.gbl... > Hello, > > I have several Visual Studio 2005 instances running, and I need to connect > to one of them using C#, how can I do that? > > Thanks. >