vs debug调试报错

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.

解决办法:

动态库调用约定问题,

配置属性->c/c++->高级->调用约定 stdcall(Gz)

配置属性->c/c++->高级->调用约定 cdecl(Gd)

猜你喜欢

转载自blog.csdn.net/struborn_b/article/details/107781446