Comment 7 for bug 811864

Revision history for this message
Stephen Bennett (smb-nyx) wrote :

>>In short Batch.cpp is used in both PTBatcher and PTBatcherGUI but wxGetApp() is only defined in the GUI project.

Actually I'm wrong here, the issues is which headers gets included into Batch.cpp.

It is easy to re-range the header so they both contain the DECLARE_APP().. Then all that is needed is to conditionally include either Batcher.h or BatcherGUI.h. But is not that easy when this file is compiled it does not know what is being compiled with it, to select the appropaite header.

Regards
Stephen