Moin,
ich habe ein Problem beim Erstellen eines eigenen Menüpunktes in Visual Studio 2008.
In Visual Studio 2005 konnte man ohne Probleme mit diesem Quellcode
einen Menüpunt erstellen:
CommandBar menuBarCommandBar = ((CommandBars)_applicationObject.CommandBars)["MenuBar"];
commands.AddCommandBar("Item", vsCommandBarType.vsCommandBarTypeMenu, menuBarCommandBar,1);
Wenn man diesen Code für 2008 verwendet erhält man jedoch diese COMException:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Hat jemand eine Idee, wie ich es schaffe eine Menüpunkt zu erstellen?
Danke