DLL调用异常:The value of ESP was not properly

简介: DLL调用异常:The value of ESP was not properly

就是调用DLL的时候出错了。例如:


VS调用DLL范例_柳鲲鹏-CSDN博客


解决办法

声明时加入(或者去掉)WINAPI。具体来说:


typedef void(WINAPI *TestFunction)(char*);

需要注意的是,有时要去掉才正确。这个跟DLL函数的写法相关。

目录
相关文章
|
6月前
|
数据采集 Windows
LabVIEW调用DLL时出现异常0xc0000005代码
LabVIEW调用DLL时出现异常0xc0000005代码
72 0
解决:Oops internal error 40343 occured.Further work is not possible and IDA will close (打开文件出现40343错误)
解决:Oops internal error 40343 occured.Further work is not possible and IDA will close (打开文件出现40343错误)
371 0
【琐琐碎碎小知识】Keil5编译时候出现 Error: L6200E: Symbol HAL_MspDeInit multiply defined事故处理
【琐琐碎碎小知识】Keil5编译时候出现 Error: L6200E: Symbol HAL_MspDeInit multiply defined事故处理
1024 0
【琐琐碎碎小知识】Keil5编译时候出现 Error: L6200E: Symbol HAL_MspDeInit multiply defined事故处理
|
Java
error LNK2001: 无法解析的外部符号unresolved external symbol __imp__JNI_CreateJavaVM@12
error LNK2001: 无法解析的外部符号unresolved external symbol __imp__JNI_CreateJavaVM@12
94 0
[Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll]错误的解决方法
[Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll] 当启动 python 脚本出现 cannot load mkl_intel_thread.dll 错误信息;
解决:Oops! internal error 40343 occured.Further work is not possible and IDA will close(打开文件出现40343错误)
解决:Oops! internal error 40343 occured.Further work is not possible and IDA will close(打开文件出现40343错误)
666 0
解决:Oops! internal error 40343 occured.Further work is not possible and IDA will close(打开文件出现40343错误)
DLL调用异常:The value of ESP was not properly
DLL调用异常:The value of ESP was not properly
134 0
|
C++
error LNK2005: DllMain 已经在MSVCRT.lib中定义
error LNK2005: DllMain 已经在MSVCRT.lib中定义
422 0