DLL 中測驗的代碼(Delphi Xe 10.2撰寫)
uses
System.SysUtils,
System.Classes,
Vcl.Forms,
Vcl.Dialogs;
{$R *.res}
procedure ExecMethod; stdcall;
var
A: Integer;
begin
A := StrToInt('A');
ShowMessage(IntToStr(A));
end;
exports
ExecMethod;
begin
end.
Delphi 2007 呼叫的代碼
procedure ExecMethod; stdcall; external 'TestDll.dll';
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
ExecMethod;

end;
執行顯示的例外對話框
沒有顯示具體的例外資訊

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/196021.html
標籤:VCL組件開發及應用
下一篇:druid + oracle報錯 com.alibaba.druid.sql.ast.statement.SQLBlockStatement not allow
