I have Application1 which involves the following
frmAccs := TFrmAccs.Create(nil);
frmAccs.ShowModal;
Within Application1 I trigger Application2 [as follows] to obtain a result for Application1 to further rely upon.
WinExec('c:\Program Files\Application2.exe', SW_SHOW);
...which achieves the required result ....BUT frmAccs.ShowModal loses its focus to produce unwanted result.
To overcome the problem I tried the following ...
frmAccs.Release;
WinExec('c:\Program Files\Application2.exe', SW_SHOW);
frmAccs.Refresh;
...whereby frmAccs.ShowModal [apparently] maintains its proper focus BUT Application1 hangs.
Any suggestions anyone?
Thanks in advance.
Old Man Delphi
frmAccs := TFrmAccs.Create(nil);
frmAccs.ShowModal;
Within Application1 I trigger Application2 [as follows] to obtain a result for Application1 to further rely upon.
WinExec('c:\Program Files\Application2.exe', SW_SHOW);
...which achieves the required result ....BUT frmAccs.ShowModal loses its focus to produce unwanted result.
To overcome the problem I tried the following ...
frmAccs.Release;
WinExec('c:\Program Files\Application2.exe', SW_SHOW);
frmAccs.Refresh;
...whereby frmAccs.ShowModal [apparently] maintains its proper focus BUT Application1 hangs.
Any suggestions anyone?
Thanks in advance.
Old Man Delphi