News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Indent Add-in

Started by Robert, October 10, 2005, 04:49:14 AM

Previous topic - Next topic

Robert

Holger Buick's Indent Addin is not adding a command button to the Toolbar.

Robert Wishlaw

Robert

The original DLL distributed in the indent1.0.1.zip does work.

A new DLL compiled from the .ppj with Pelle's C 4.0 does not work.

Robert Wishlaw

TimoVJL

Add-In API have changed little.
Add that AddCmd.idMenu


AddCmd.id = ID_INDENT;
AddCmd.idMenu = AIM_MENU_NOTHING; // Toolbar button
return AddIn_AddCommand(hwnd, &AddCmd);
May the source be with you

Pelle

The best generic solution is probably to clear all structures before they are used:

for example, change:
ADDIN_ADD_COMMAND AddCmd;
to:
ADDIN_ADD_COMMAND AddCmd = {0};

Zero or NULL are the default for fields added after the initial release...

Pelle
/Pelle