第六章6.6节Notice that within BaseThreadStart, the thread calls either ExitThread or ExitProcess. This means that the thread cannot ever exit this function; it always dies inside it. This is why BaseThreadStart is prototyped as returning VOID—it never returns. //不返回是什么意思?Also, your thread function can return when it's done processing because of BaseThreadStart. When BaseThreadStart calls your thread function, it pushes its return address on the stack so your thread function knows where to return. //返回地址放在了线程栈的什么位置?But BaseThreadStart is not allowed to return. If it didn't forcibly kill the thread and simply tried to return, an access violation would almost definitely be raised because there is no function return address on the thread's stack and BaseThreadStart would try to return to some random memory location.
解决方案 »
- 谁有HMAC-SHA1的C++实现的函数 发我一下吧
- 有两个LISTCTRL使用同一个右键菜单,如何判断是在哪个LISTCTRL的菜单里选择的?
- 问题解决,马上结贴
- TCP/IP通讯中,客户端可以联接Server,并且可以向Server发数据 但 在客户端recv接收不到Server的数据,为什么 ?
- 从缓冲dc中输出文字到hdc中的问题
- 成批打开文件的问题!
- 关于CListCtrl的几个问题
- 有关刻录编程-如何编程读写cd-r盘片
- VC中自定义显示的视图不能用UpdateData函数??????????
- 做过CAB文件的哥们看过来。
- 如何解析算术表达式,计算出结果,有写好的库吗
- 怎么理解--"由于COM永久模型的复杂性主要位于客户程序一方"
2. 就跟一般的函数调用一样啊, 在ESP上的四个字节, 位于压栈的最后一个参数下面(这里只有一个参数)