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';

 

posted on 2024-11-20 10:34  liflying  阅读(41)  评论(0)    收藏  举报

导航