我用delphi写了一个dll,里面写了两个函数然后按顺序exports在另一个工程里调用
function ShowMes:integer;stdcall;external 'dll.dll';
function ShowMax(a,b: integer);stdcall;external 'dll.dll';
在函数执行第二个函数时,出现内存访问错误,这是为什么?
function ShowMes:integer;stdcall;external 'dll.dll';
function ShowMax(a,b: integer);stdcall;external 'dll.dll';
在函数执行第二个函数时,出现内存访问错误,这是为什么?
我看了一下,delphi支持5中调用方式:register,cdecl,pascal;stdcall;safecall他们都有什么本质上的区别阿/我为什么改一下,就对了呢?书上说的都是stdcall调用方式阿
?????