What is the correct way to define a UNICODE
independent WinMain
function for a Windows program that uses the CRT?
I am inclined to think that it should be something like
WINAPI
#ifdef UNICODE
wWinMain
#else
WinMain
#endif
( ... ) {
...
}
However, I am wondering if there is not already a predefined macro that expands to the correct symbol when compiling the source units (like those that are offered in the windows header files that expand to either WinApiFuncA
or WinApiFuncW
.