How to programmatically add a toolbar and button to Express C++?

Since add-ins don't appear to be presently supported in VC++ Express Beta 2, does anyone know how you can programmatically add a toolbar and put a toolbar button in that toolbar corresponding to an existing External Tool   I used to do this with an add-in in VS.NET 2003, but cannot with VC++ Express Beta 2 because add-ins don't appear to be supported.

Where is the information for new toolbars and the buttons they contain stored   I can't find it anywhere.

Thanks in advance for any help.

- Chris Disdero
Everett, WA USA


Answer this question

How to programmatically add a toolbar and button to Express C++?

  • Marcelo Amorim

    Thank you for your response, but unfortunately that is not doing it programmatically.  That is the steps for doing it by hand, manually.  I need a way of accomplishing those manual tasks via code, preferably outside of Visual Studio, like you can in Visual Studio 2003.
  • up2date

    Go to Tools->External Tools... and add the requried information for invoking your external app.  Then go to Tools->Customize... and select the "Commands" tab.  In the "Categories" list find "Tools" and then in the "Command" list find "External Command 1".  Then drag this item up onto a toolbar and drop it.  This will add it to the toolbar.  When you close the "Customize" dialog, the name of the command in the toolbar will update to match the name you gave to the external tool.

    Thanks,
    Luke Hoban
    Visual C# IDE Program Manager


  • gadi renert

    Hi,

    Unfortunately, the technique you speak of falls under our add-in API and is not available in the Express edition. You can still do this in all the other versions of Visual Studio 2005 similarly to 2003.

    Thanks,



  • How to programmatically add a toolbar and button to Express C++?