Base MsgInspector off of MsgGui, not MsgApp (which is a command-line application).
Don't pass params to set function by reference.  Add a new template specifically for generating code for message header definitions.