I want to have two main functions for GUI and Console mode.
Are there macros to detect what is set in Linker->System->SubSystem?
#ifdef ...
int main(int argc, char *argv[])
{
//...
}
#else
int main(int argc, char *argv[])
{
//...
}
#endif
_CONSOLE
macro does not work for me.
And I don't use WinMain
in my project. For GUI mode I also use main
.