请问一个在VC内嵌汇编的问题?
各位大哥,我在VC里写了个DLL,里面有一个函数中内嵌了汇编,但为什么我在汇编中一使用压堆栈的指今后就会出现错误。。
过程是这样的,建立一个DLL,在DLL写一个函数,里面加上
__asm{
push ax
pop ax
}
然后在做一个EXE调用这个DLL里的函数,这样就出错了,出错信息
program
module
file: i386\chkesp.c
line:42
the value of ESP was not properly saved acorss a function call.
This is usually a result of calling a functino declared with
one calling convention with a function pointer declared with a
different calling convention
过程是这样的,建立一个DLL,在DLL写一个函数,里面加上
__asm{
push ax
pop ax
}
然后在做一个EXE调用这个DLL里的函数,这样就出错了,出错信息
program
module
file: i386\chkesp.c
line:42
the value of ESP was not properly saved acorss a function call.
This is usually a result of calling a functino declared with
one calling convention with a function pointer declared with a
different calling convention
...全文
相关推荐
在VC2008下将32位C++内嵌汇编迁移到64位
"将 32 位 C++ 内嵌汇编迁移到 64 位"将 32 位 C++ 内嵌汇编迁移到 64 位是指在 64 位 Windows 操作系统下,解决内嵌汇编不被支持的问题。
在VC2022年下将32位C++内嵌汇编迁移到64位.doc
VC2022环境下,内嵌32位汇编代码无法直接迁移到64位平台,因为64位平台不支持内嵌汇编语法。
STM32单片机FPGA毕设电路原理论文报告vc中内嵌汇编实现pc机与单片机的并行通信
### STM32单片机与FPGA在毕业设计中的应用:基于VC中内嵌汇编实现PC机与单片机的并行通信#### STM32单片机概述STM32系列微控制器是由意法半导体(STMicroelectronics
用vc6开发汇编语言程序的方法
首先,要安装VC6.0,建议使用英文原版,因为非官方的中文版可能存在问题。
VC内联汇编资料 VC内联汇编资料
总结来说,VC内联汇编是一种强大的工具,它为开发者提供了直接操纵硬件的能力,但也带来了可移植性和维护性的问题。


