你会不会问 我怎么知道入口点是上面那几个呢。。。
看linker的参数
http://msdn.
里面说的很明白了
摘录重点
Function name Default for
mainCRTStartup (or wmainCRTStartup) An application using /SUBSYSTEM:CONSOLE; calls main (or wmain)
WinMainCRTStartup (or wWinMainCRTStartup) An application using /SUBSYSTEM:WINDOWS; calls WinMain (or wWinMain), which must be defined with __stdcall
_DllMainCRTStartup A DLL; calls DllMain, which must be defined with __stdcall, if it exists
[ 本帖最后由 zklhp 于 2012-4-11 21:37 编辑 ]
看linker的参数
http://msdn.
里面说的很明白了
摘录重点
Function name Default for
mainCRTStartup (or wmainCRTStartup) An application using /SUBSYSTEM:CONSOLE; calls main (or wmain)
WinMainCRTStartup (or wWinMainCRTStartup) An application using /SUBSYSTEM:WINDOWS; calls WinMain (or wWinMain), which must be defined with __stdcall
_DllMainCRTStartup A DLL; calls DllMain, which must be defined with __stdcall, if it exists
[ 本帖最后由 zklhp 于 2012-4-11 21:37 编辑 ]