Here is an example that may be useful. Originally posted in cdnusers.org by AshCan
The ipc356_out command is called when you select File -> Export -> IPC356 from the main Allegro menu. You want to do something a little different then the generic ipc356_out function.
First you would need to build the function you do wish to execute (some special extracta routines or specialized database reads, perhaps using a customized form UI). Let's say that you call this compiled Skill function "my_IPC_out".
You can use the axlCmdRegister utility to "create" a user-defined Allegro command or, in this case, you would use this utility to redefine the existing Allegro command.
Now when you enter ipc356_out from the Allegro command line the compiled function "my_IPC_out is executed. If you want to call the custom function from the Allegro menu you could ....
and then modify your Allegro menu from ....
MENUITEM "IP&C 356...", "ipc356 out"
MENUITEM "IP&C 356...", "ipc356_private"