VC++6.0下main函数有如下特征:三个参数,分别为命令行参数个数、命令行参数信息和环境变量信息。main函数被调用前先调用的函数如下:
GetVersion()
_heap_init()
GetCommandLineA()
_crtGetEnviromentStringsA()
_setargv()
_setenvp()
_cinit()
这些函数调用结束后就会调用main函数,根据main函数的调用特征,会将3个参数压入栈作为函数的参数。


VC++6.0下main函数有如下特征:三个参数,分别为命令行参数个数、命令行参数信息和环境变量信息。main函数被调用前先调用的函数如下:
GetVersion()
_heap_init()
GetCommandLineA()
_crtGetEnviromentStringsA()
_setargv()
_setenvp()
_cinit()
这些函数调用结束后就会调用main函数,根据main函数的调用特征,会将3个参数压入栈作为函数的参数。
本文标题:三、认识启动函数,找到用户入口
本文链接:https://www.haomeiwen.com/subject/hefokctx.html
网友评论