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.
追踪进去之后发现是
回调函数
typedef void (*CSNOTIFYFUNC)(void* pOwner, int command, LPVOID lParam);两个地方没有写一致
修改为一致的方法为,要么都带CallBack要么不带CallBack;