I am trying to understand how substituting another entry point for WinMain works in the Microsoft toolchain.
I already found this question , and it was very helpful, but one last detail grumbles at me.
The first time I changed the Linker>Advanced>Entry Point parameter in Visual Studio, I set it to main by mistake, and my program compiled and went fine. I realized this later and rebuilt the program by installing it on mainCRTStartup , as the accepted answer suggests in a related question, and did not find anything else.
So my question is: is there any difference between main and mainCRTStartup , and if so, what is the difference?
source share