Delphi【异常捕获以及Exe调用方法方法】

通过测试.exe程序调用dll外部方法,通过dll调用主程序.exe方法实现。  

Showmessage('进入方法?这里是dll里LoginElecReq');
  try
  ShellExecute(Application.Handle, 'Open','prjGhMzPrePayPrint60.exe', PChar(pChargeSN), nil, SW_SHOWNORMAL);
  except
  on E:Exception do 
    showmessage(E.ClassName+':'+E.Message);
  end

撸起袖子加油干。
原文地址:https://www.cnblogs.com/meitai/p/9186452.html