图片说明](https://img-ask.csdn.net/upload/201504/20/1429523692_595811.jpg)
出现如下问题
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
m_pMainWnd是否是CAutoNavDialog类型?如果类型不匹配会遇到这个运行时检查。