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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!usc!cs.utexas.edu!sun-barr!ames!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!gibdo!tvp
  3. From: tvp@gibdo.engr.washington.edu ()
  4. Subject: Need KLUDGE to make DOS .exe work *my way* from VB app
  5. Message-ID: <1992Dec12.043729.18412@u.washington.edu>
  6. Sender: news@u.washington.edu (USENET News System)
  7. Organization: clearer than blir
  8. References: <1992Dec9.193630.25156@worak.kaist.ac.kr>
  9. Date: Sat, 12 Dec 1992 04:37:29 GMT
  10. Lines: 41
  11.  
  12. I'm fairly new to Windows programming. I picked up Windows SDK, VB and
  13. Borland C++ 3.1 with the purchase of my home PC last spring.
  14. Basically, all I've been using is BC++, and then only for compiling
  15. straight C.  Realizing this is a waste, I've taken on some small
  16. projects to initiate me in different aspects of Windows programming.
  17.  
  18. Project 1: Take an old DOS command-line based text filter and convert
  19.            it to a small Windows tool.
  20.  
  21. [I don't like text entry using word processors; I like input power
  22. through the likes of Emacs, Microemacs and now Microemacs for windows.
  23. The text filter I'm talking about turns whatever I've input from your
  24. typical text file full of hard returns, into flowable text with
  25. command line options of leaving blank lines between paragraphs (or
  26. deleting) and using one (or two) spaces after sentence ending periods.
  27. The source for this filter is "portable" C.]
  28.  
  29. For conversion, I thought I'd try Visual Basic. (Turns out I kind of
  30. like it, but that's another story.) The way I did it was to put in a
  31. Drive box, Directory box, and File list box (using the standard
  32. idioms) for selecting the input text file; two check boxes repre-
  33. senting the command line options; and Run and Exit buttons. This
  34. interface builds up the appropriate command line string and gives it
  35. to Shell() when the user hits the Run button.  It works, but I don't
  36. like the way the screen goes to DOS momentarily when the exe runs. I'd
  37. rather it just ran in the background.
  38.  
  39. Question: Are there any good ways of avoiding this?
  40.  
  41. Since this is a project to learn more about Windows, solutions such as
  42. changing the original C source and going with Windows SDK or BC++ over
  43. VB are also welcome. But a VB interfacing with the original .exe type
  44. solution is best, if possible, as that code already exists.
  45.  
  46. Thanks in advance.
  47.  
  48. ------------------------------------------------------------------------
  49. Tad Perry      Internet:    tvp@gibdo.engr.washington.edu
  50.                CompuServe:  70402,3020
  51.                NIFTY-Serve: GBG01266
  52. ------------------------------------------------------------------------
  53.