各位,有个程序,编译、连接都过去了,但是运行不起来,在程序中哪里设断点也跑不到,用call stack 看了一下,在WinMainCRTStartup()中运行到_setmbcp这么个函数那就出错了,具体错误位置是:
                      _mbctype[ich] = 0;
        系统提示_mbctype这块内存不可写。
_setmbcp的注释是:
Purpose:
*       Init MBC character type tables based on code page number. If
*       given code page is supported, load that code page info into
*       mbctype table. If not, query OS to find the information,
*       otherwise set up table with single byte info.
 
   各位大虾,咋回事?