CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Location
    Russia
    Posts
    2

    How create COM object using GUID or CLSID

    Good day,

    problem:
    on a box installed two VS.NET 7.0 and 7.1 aka 2003
    how I can get DTE object for 7.0 and for 7.1 if I know its GUIDs.


    Thanx.

  2. #2
    Join Date
    Nov 2002
    Location
    Russia
    Posts
    2

    Exclamation

    I did it, see code:

    .....
    DTE DTE70 = (DTE)Activator.CreateInstance( Type.GetTypeFromProgID("VisualStudio.DTE.7") );
    .....

    DTE DTE71 = (DTE)Activator.CreateInstance( Type.GetTypeFromProgID("VisualStudio.DTE.7.1") );

    THANX.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured