A
Angus
If I want to write a text based C program I use int main etc as my
program entry point. But if I want to write for aexample a GUI
application for some platform then I would use a different entry point
- eg WinMain for MS Windows.
I had a look in crt0.c file included with my compiler and the code
calls mainCRTStartup or WinMainCRTStartup dependent on some defines.
Presumably This is all controlled by defines you setup in your
project?
But why can we not use main for these 'other' program types?
program entry point. But if I want to write for aexample a GUI
application for some platform then I would use a different entry point
- eg WinMain for MS Windows.
I had a look in crt0.c file included with my compiler and the code
calls mainCRTStartup or WinMainCRTStartup dependent on some defines.
Presumably This is all controlled by defines you setup in your
project?
But why can we not use main for these 'other' program types?