[comp.lang.pascal] TPW and EXEC

Mark@hamster.business.uwo.ca (Mark Bramwell) (06/19/91)

I have been looking through the TPW manuals and I do not see a routine to EXEC
another program (win or dos).  How does someone run other programs such as
NOTEPAD.EXE from with a TPW app?



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Mark Bramwell, VE3PZR                Located in sunny London, Ontario

Internet: mark@hamster.business.uwo.ca  IP Address: 129.100.22.100
  Packet:  VE3PZR @ VE3GYQ               UWO Phone: (519) 661-3714

oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel ) (06/19/91)

In article <27237@adm.brl.mil> Mark@hamster.business.uwo.ca (Mark Bramwell) writes:


   I have been looking through the TPW manuals and I do not see a routine to EXEC
   another program (win or dos).  How does someone run other programs such as
   NOTEPAD.EXE from with a TPW app?

This is going to be confusing.  TPW only comes with half of the
documentation (in paper).  One needs to go out and buy the Microsoft
SDK documentation for the windows functions. 

This is from the FAQ posting in comp.windows.ms.programmer.  My notes
follow.



24. What books are there that I should be using for Windows programming?

>>  First of all, if you don't have an SDK, you'll want the SDK docs:
	SDK Reference -- Volume 1
		Microsoft Press, 1990, part no. 06856
	SDK Reference -- Volume 2
		Microsoft Press, 1990, part no. 06857
	SDK Guide to Programming
		Microsoft Press, 1990, part no. 06854
	SDK Tools
		Microsoft Press, 1990, part no. 06854
	SAA CUA Advanced Interface Design Guide
		IBM, 1989, part no. SC26-4582-0
    Then you can get into the "aftermarket" books:
	Charles Petzold: Programming Windows, 2e
		Microsoft Press, 1990, ISBN 1-55615-264-7
	Jeffrey M. Richter: Windows 3: A Developer's Guide
		M&T Books, 1991, ISBN 1-55851-164-4



The SDK Reference Vol 1 and Vol 2 are sold in the normal book stores
as one volume called something like Windows Programming Reference.
Get this.  Also get the Guide to programming and/or Petzold's
Programming Windows.  Petzold's book is an easier read but they both
seem to cover about the same area.  The Tools book is also sold in the
stores but it probably won't be useful for TPW programming.  I've
heard good things about Richter's book, but I haven't seen it.

bruce
--
Bruce O'Neel              oneel@heasfs.gsfc.nasa.gov
NASA/GSFC/STX/Code 664

dmurdoch@watstat.waterloo.edu (Duncan Murdoch) (06/20/91)

In article <ONEEL.91Jun19093724@heawk1.gsfc.nasa.gov> oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel ) writes:
>In article <27237@adm.brl.mil> Mark@hamster.business.uwo.ca (Mark Bramwell) writes:
>
>
>   I have been looking through the TPW manuals and I do not see a routine to EXEC
>   another program (win or dos).  How does someone run other programs such as
>   NOTEPAD.EXE from with a TPW app?
>
>This is going to be confusing.  TPW only comes with half of the
>documentation (in paper).  One needs to go out and buy the Microsoft
>SDK documentation for the windows functions. 

That's not completely true.  The WinExec function which Mark needs is documented
in the TPW Windows Reference Guide, and in the online help.  

The SDK documentation is helpful, though you can almost certainly get by
without it if you get Petzold's book.  The main advantage is that reading
something 3 times (TPW, Petzold, SDK) tends to make it a tiny bit more
comprehensible (at least to me) than reading it once or twice.

The main things missing from the TPW documentation are a general philosophical 
summary, and examples of using the Windows API.  You need at least Petzold for 
those.  

Duncan Murdoch
dmurdoch@watstat.waterloo.edu