I'm using a cross platform GUI library (FLTK) to make some GUI with, I'm not using the Win32 API. I want this program to run on a Windows, Linux and Mac OS.
I don't really get how cross platform mumbo jumbo works (look at my account name), but I think understand what it means to be cross platform. But that's not my question.
My problem is that my entry function right now is simply int main(), but when I use this entry function, the console pops up. I don't want any consoles, so I know that I could make my entry function like this:
int wWinMain(HINSTANCE hInst, HINSTANCE hPreInst, LPWSTR nCmdLine, int nCmdShow)
and there would be no console.
My fear is that since I have to use the Win32 API to have this wWinMain entry function (because of the HINSTANCEs and the LPWSTR), the program would no longer be compatible with other OS's.
So my question is, will my program work on a Mac and Linux OS if I use the wWinMain function? If not, is there a function that I can use that creates no console and will work on all OS's?
Finally, perhaps I'm completely delusional about being able to have the same .exe program work on any OS, and that is in fact not possible. Is this so?