does ANYBODY ever written an addin in VS.NET /c++ ????????
-
seems, that nobody can help me :(( i have 3 main problems, i just cant solve, although they sound easy: 1. I cant change the icon of the addin button.(i always have the default button, a smiley) (sounds like a easy problem,he? TRY IT!!!,change it to a custom icon!) 2. I cant assign a default shortcut, i tried the following but it didnt worked(it compiles, but it does not assign the key) //in the onconnection method: SAFEARRAY arrSafe; arrSafe.fFeatures =FADF_BSTR; arrSafe.cbElements =35; //maby not necessary arrSafe.cDims = 1; //maby not necessary BSTR bstrShortCut =A2BSTR("Global::alt-s"); arrSafe.pvData = bstrShortCut; VARIANT var1; var1.vt = VT_ARRAY; var1.parray = &arrSafe; pCreatedCommand->put_Bindings(var1); 3. I would like to install my addins(the buttons) by default in a menu next to "Tools" which is called "MyAddins". how can i do this??? (i can manually make a new menu (Tools->customize,etc..) and then install my addin in there automatically (IfFailGoCheck(pCommandBars->get_Item(CComVariant(L"MyAddins"), &pMenuBarCommandBar), pMenuBarCommandBar); but i cant make this "MyAddins" Menue automatically by code!! THE FIRST DUDE, WHICH CAN HELP ME IN ANY OF THE 3 ISSUES (ISSUE 2. IS THE EASYEST, I GUESS) WILL BE NOMINATED FOR THE OFFICAL "ADDIN-MASTER OF THE YEAR AWARD":cool:
-
seems, that nobody can help me :(( i have 3 main problems, i just cant solve, although they sound easy: 1. I cant change the icon of the addin button.(i always have the default button, a smiley) (sounds like a easy problem,he? TRY IT!!!,change it to a custom icon!) 2. I cant assign a default shortcut, i tried the following but it didnt worked(it compiles, but it does not assign the key) //in the onconnection method: SAFEARRAY arrSafe; arrSafe.fFeatures =FADF_BSTR; arrSafe.cbElements =35; //maby not necessary arrSafe.cDims = 1; //maby not necessary BSTR bstrShortCut =A2BSTR("Global::alt-s"); arrSafe.pvData = bstrShortCut; VARIANT var1; var1.vt = VT_ARRAY; var1.parray = &arrSafe; pCreatedCommand->put_Bindings(var1); 3. I would like to install my addins(the buttons) by default in a menu next to "Tools" which is called "MyAddins". how can i do this??? (i can manually make a new menu (Tools->customize,etc..) and then install my addin in there automatically (IfFailGoCheck(pCommandBars->get_Item(CComVariant(L"MyAddins"), &pMenuBarCommandBar), pMenuBarCommandBar); but i cant make this "MyAddins" Menue automatically by code!! THE FIRST DUDE, WHICH CAN HELP ME IN ANY OF THE 3 ISSUES (ISSUE 2. IS THE EASYEST, I GUESS) WILL BE NOMINATED FOR THE OFFICAL "ADDIN-MASTER OF THE YEAR AWARD":cool:
Look at sources of published addo-on's on codeproject.... Code Teamplate Add-on can solve 2 issues to you... Also look at SmartHelp addon sources... many good ideas and finished classes ready to use... Good Luck Alex Kucherenko