I'm trying to understand how substituting a different entry point for WinMain
works in the Microsoft toolchain.
I already found this question and it was super helpful, but one last detail is nagging at me.
The first time I changed the Linker>Advanced>Entry Point
option in Visual Studio, I set it to main
by mistake and my program compiled and ran fine. I realized it later and rebuilt the program with it set to mainCRTStartup
, as the accepted answer in the linked question suggests, and didn't find anything different.
So, my question is: is there any difference at all between main
and mainCRTStartup
, and if so, what is the difference?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…