home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / ms / programm / 7289 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  1.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!netnews.upenn.edu!grad1.cis.upenn.edu
  2. From: din@grad1.cis.upenn.edu (Clarence Din)
  3. Newsgroups: comp.windows.ms.programmer
  4. Subject: Help with WinExec !
  5. Message-ID: <83994@netnews.upenn.edu>
  6. Date: 21 Jul 92 17:25:09 GMT
  7. Sender: news@netnews.upenn.edu
  8. Organization: University of Pennsylvania
  9. Lines: 25
  10. Nntp-Posting-Host: grad1.cis.upenn.edu
  11.  
  12. In my C program, I have some code as follows:
  13.  
  14. ...
  15. ...
  16. commands
  17. ...
  18.  
  19. WinExec ("whatever", SW_HIDE);
  20.  
  21. more commands
  22.  
  23. "whatever" is a DOS program of which I had set up a PIF file (set to
  24. Exclusive Execution).  "whatever" is a program which does some file
  25. manipulation and may take some long amount of time to finish.
  26. The problem is I want "whatever" to completely finish what it's doing
  27. before Windows runs "more commands" which follow the WinExec (above).
  28. How do I do this?
  29.  
  30. Is there something in the Advanced options I'm supposed to fiddle with?
  31. ---------------------------------------------------------------------------
  32. Clarence K. Din
  33. Programmer/Analyst II, Language Analysis Center, University of Pennsylvania
  34. din@grad1.cis.upenn.edu
  35. ---------------------------------------------------------------------------
  36. "I have my toys (D-50, SR-16, TG-16 CD-ROM, SNES) and you don't!  Nyah!!!"
  37.