How to detect what subsystem is set?

48 Views Asked by At

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.

0

There are 0 best solutions below