home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4194 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!eagle!lims01.lerc.nasa.gov!smbrush
  3. From: smbrush@lims01.lerc.nasa.gov (Andy Brush @Sverdrup)
  4. Subject: DosExecPgm Args Question
  5. Message-ID: <13AUG199208152210@lims01.lerc.nasa.gov>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@eagle.lerc.nasa.gov
  8. Nntp-Posting-Host: lims01.lerc.nasa.gov
  9. Organization: NASA Lewis Research Center
  10. Date: 13 Aug 1992 08:15 EST  
  11. Lines: 17
  12.  
  13. I'm trying to DosExecPgm a program that requires command-line switches.  
  14. The docs say that these args are placed in a "pointer to zero-terminated 
  15. string*s*", and passed to the function.
  16.  
  17. Well, that arg to DosExecPGm is typedef'ed as "char *PSZ", so I'm a little 
  18. lost on how it points to more than one string.  I have tried a few of what 
  19. I thought were possibilities, but no luck.
  20.  
  21. Will someone post a code fragment which shows the correct way to load the 
  22. argument string for DosExecPgm?
  23.  
  24. Thanks in advance.
  25.  
  26. Andrew S. Brush             | SMBRUSH@LIMS01.lerc.nasa.gov
  27. Sverdrup Technology         | 2001 Aerospace Parkway
  28. NASA LeRC Group             | Brook Park, OH 44142
  29. "Opinions are Mine, Only"   | (216) 826-6770
  30.