通过测试.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