Dino Ferraro
2008-10-01 11:57:38 UTC
Hello
Im Using SchellExecute to load extern programs from within Dbase.
My problem is that when the Program is executet within Dbase and then close
the executet Program, this program still resides in the Memory/Process of
Windows.
If I load the program various times it stays listed in the prozess in
Windows and then I have the same program load it various times.
How can I programmaticly resolve this.
Thanks
extern cHandle ShellExecute( cHandle, cString, cString, ;
cString, cString, cINT ) SHELL32 ;
from "ShellExecute" + "A"
cPDFPath =
'"'+Trim(_app.PDFpathdata)+'/'+Trim(Form.NameVorname.Value)+'.pdf"'
cFile = 'C:\Program Files\O Imaging
Corporation\ScanToPDF\ScanToPDF.exe'
cString = '/autoscan /terminateaftersave /pdfpath=&cPDFpath'
ShellExecute(_app.framewin.hwnd, 'open', cFile, cString, '',
1)
Im Using SchellExecute to load extern programs from within Dbase.
My problem is that when the Program is executet within Dbase and then close
the executet Program, this program still resides in the Memory/Process of
Windows.
If I load the program various times it stays listed in the prozess in
Windows and then I have the same program load it various times.
How can I programmaticly resolve this.
Thanks
extern cHandle ShellExecute( cHandle, cString, cString, ;
cString, cString, cINT ) SHELL32 ;
from "ShellExecute" + "A"
cPDFPath =
'"'+Trim(_app.PDFpathdata)+'/'+Trim(Form.NameVorname.Value)+'.pdf"'
cFile = 'C:\Program Files\O Imaging
Corporation\ScanToPDF\ScanToPDF.exe'
cString = '/autoscan /terminateaftersave /pdfpath=&cPDFpath'
ShellExecute(_app.framewin.hwnd, 'open', cFile, cString, '',
1)