Just as every C application and C++ application must have a main function as its starting point, every Win32-based application must have a WinMain function.
Take a look: http://msdn.microsoft.com/en-us/library/vstudio/bb384843.aspx
题
I am going through couple of VS solutions. The c files belonging to the project do not have main function, they do have functions like MainWindProc and several others.
Are VS soln files significantly different in the sense that their main function is declared somewhere else e.g. in .sln file rather than in.c file?
解决方案
Just as every C application and C++ application must have a main function as its starting point, every Win32-based application must have a WinMain function.
Take a look: http://msdn.microsoft.com/en-us/library/vstudio/bb384843.aspx
其他提示
Here,MainWindProc is your entry point. We can change entry point of a c programme by using one of the mettod described Here