Re: use of temp similar to WinZip Howto?



"Wayne Niddery [TeamB]" <wniddery@xxxxxxxxxxxxxx> wrote in
news:44bbb4e7@xxxxxxxxxxxxxxxxxxxxxx:

Frenk wrote:
didn't know where to ask. I was wondering how could I implement
similar behaveour for editing files like winzip in Delphi. I have
files (eg. pdf, bmp, etc.) stored in database (BLOB). When user click
it, I would like to save it to a temp file, run editor ( (?)
shellexecute "c:\Temp\fileName.ext") and then check for "updates"
after editor is closed (Ithink that this is the easiest part -> just
checking file date). How could I block my app. till editor is not
closed (modal edit) or
just note a user that edited values will be lost if editor is not
closed? Any suggestion?

ShellExecuteEx/CreateProcess both return structures that contain a
ProcessID. This value can be used in another API call,
WiatForSingleObject, which will suspend your program until the shelled
program exits.



JVCL has TjvCreateProcess component which nicely covers these calls also
giving you events and properties.

--
Best regards.

M. Utku Karatas
.