home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4212 < prev    next >
Encoding:
Text File  |  1992-12-14  |  2.3 KB  |  54 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Need KLUDGE to make DOS .exe work *my way* from VB app 
  5. Distribution: world
  6. References: <1992Dec12.043729.18412@u.washington.edu>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 39
  11. Date: Mon, 14 Dec 1992 18:30:22 +0000
  12. Message-ID: <724357822snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1992Dec12.043729.18412@u.washington.edu> tvp@gibdo.engr.washington.edu writes:
  16.  
  17. >I'm fairly new to Windows programming. I picked up Windows SDK, VB and
  18. .....
  19. >
  20. >Project 1: Take an old DOS command-line based text filter and convert
  21. >           it to a small Windows tool.
  22. >
  23. >[I don't like text entry using word processors; I like input power
  24. >through the likes of Emacs, Microemacs and now Microemacs for windows.
  25. >The text filter I'm talking about turns whatever I've input from your
  26. >typical text file full of hard returns, into flowable text with
  27. >command line options of leaving blank lines between paragraphs (or
  28. >deleting) and using one (or two) spaces after sentence ending periods.
  29. >The source for this filter is "portable" C.]
  30. .....
  31. >
  32. >to Shell() when the user hits the Run button.  It works, but I don't
  33. >like the way the screen goes to DOS momentarily when the exe runs. I'd
  34. >rather it just ran in the background.
  35. >
  36. >Question: Are there any good ways of avoiding this?
  37. >
  38. >Thanks in advance.
  39. >
  40. The thing I think I'd do is simply recompile your "portable" C filter
  41. code using the Borland "EasyWin" library.  This will convert it into
  42. a genuine console-style Windows application.  That way, you want get
  43. the "flash" to DOS when the application runs.  As far as I'm aware,
  44. there's no way to execute an genuine DOS application "invisibly".
  45.  
  46. -- 
  47. --------------------------------------------------------------------------
  48. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  49. | Warrington, UK                           | BIX: cmarriott              |
  50. | (Still awaiting inspiration              | CIX: cmarriott              |
  51. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  52. --------------------------------------------------------------------------
  53.  
  54.