|
| How to make conditional compilation? |
| Iniciado por guest, 26,nov. 2015 11:03 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 26,noviembre 2015 - 11:03 |
I'm making a framework for me and some programmers. In framework i want to use classes, of course.
But some classes use objects of other classes. For example, cSQL class will use cErrorLog class - but not always. Some applications will NOT use cErrorLog class at all - no instances, no declarations, no class description.
So, in this application, i have to use other set of class variables. In all other languages i can use a simple #ifdef structure (or other structure like this) in any places, and in class declaration also. In c++ my problem solved by 2 lines of code:
#ifdef cErrorLog dErrorLog is cErrorLog #endif
Is it possible to make the same in WX?
I don't want: - use ExecuteCode(), because result will be not supportable - use multiple inherited classes, because is most classes i have moth then 2 other classes that can be not used
I'm using WX 20. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 26,noviembre 2015 - 12:12 |
See this one in the help, don't know if it's still available
Regards, Bart |
| |
| |
| | | |
|
| | |
| |
| Publicado el 29,noviembre 2015 - 10:55 |
Hi Alexander,
I know it doesn't help you out right now, but there is a conditional compilation feature in WX21. It concerns features: 089, 090 and 091.
91 is the one that applies to your case I guess.
Cheers,
Peter H. |
| |
| |
| | | |
|
| | | | |
| | |
|