Inno setup 调用external导出函数报Runtime Error
一、 错误提示
Runtime Error (at 63:212):
Access violation at address 00000001. Write of address 00000001.

二、原因
导出方式与函数的调用约定不一致
三、修正
确保调用方式一致
procedure MyDllFuncSetup(hWnd: Integer; lpText, lpCaption: AnsiString; uType: Cardinal); external 'MyDllFunc@files:MyDll.dll stdcall setuponly';

浙公网安备 33010602011771号