On Tuesday 15 January 2002 6:26 pm, Lars Gullik Bjønnes wrote: > | If, however, I split the file into a definition in ControlInset.h and a > | declaration of the class in ControlInset.C, then #include > | "ControlInset.C" in > > ah... I was going to ask how you do this without export... > > You do it with include. > > | It works like a dream here and I can see no issues associated with this. Do > | those more knowledgable than I have any problems with it? If not, I'd like to > | submit the change. > > then I'd like the ControlInset included file to be named not as .C, > perhaps .tmpl would be ok.
So basically you think it's a good idea. Great. Here's a second question. Many of the other controllers (15 in fact) are derived from ControlDialog, so again I'll split ControlDialog.h into ControlDialog.h and ControlDialog.tmpl However, there are only two instatiations of ControlDialog: ControlDialog<ControlConnectBD> ControlDialog<ControlConnectBI> is there a way therefore of changing something in ControlDialog.tmpl that results in only two recompiles? Ie, rather than #include "ControlDialog.tmpl" in all 15 files of the derived classes, I'd like to create ControlDialog<ControlConnectBD> and ControlDialog<ControlConnectBI> Can this be done? If so, how? Angus