Microsoft KB Archive/72067

= DOCERR: Docs for PWB Extension Functions Have Errors/Omissions =

Article ID: 72067

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Programmer's Workbench for MS-DOS 1.0
 * Microsoft Programmer's Workbench for MS-DOS 1.1
 * Microsoft Programmer's Workbench for OS/2 1.0
 * Microsoft Programmer's Workbench for OS/2 1.1

-



This article was previously published under Q72067



SUMMARY
Pages 180, 181, and 182 of the C version 6.00 and 6.00a &quot;Advanced Programming Techniques&quot; manual (APT) contain a table of Programmer's WorkBench (PWB) functions that can be called from a PWB extension. This list contains several errors, documenting functions that are not implemented and omitting documentation for some functions that are implemented.

The online help that comes with C versions 6.00 and 6.00a also documents some functions incorrectly.



MORE INFORMATION
The following functions are listed in &quot;Advanced Programming Techniques&quot; but are not documented in the online help, not prototyped in EXT.H, and are not implemented in EXPSUP.LIB:   fGetMake       Get extmake setting fSetMake      Set extmake setting KbHook        Restore keyboard control to PWB KbUnHook      Remove keyboard control from PWB The following function is listed in &quot;Advanced Programming Techniques,&quot; is documented in the online help and prototyped in EXT.H, but is not implemented in EXPSUP.LIB:   GetListEntry   Get Item from List The following function is listed in &quot;Advanced Programming Techniques,&quot; is documented in the online help and implemented in EXPSUP.LIB, but is not prototyped in EXT.H:   REsearch       Searches for regular expression To call REsearch, use the following prototype: int REsearch( PFILE pFile, flagType fForward, flagType fAll,        flagType fCase, flagType fWrap, char _far *pattern,           fl *pflStart ); The following functions are not listed in &quot;Advanced Programming Techniques&quot; but are documented in the online help, are prototyped in EXT.H, and are implemented in EXPSUP.LIB:   AddAColor      Adds colors to the PWB internal color table AddMenu       Adds a menu to the menu bar AddMenuItem   Adds a menu item to a menu ChangeMenu    Modifies a menu item Clearlist     Clears list farstrncpy    Same as _fstrncpy farstrcpy     Same as _fstrcpy farstrcat     Same as _fstrcat fatstrstr     Same as _fstrstr farstrlen     Same as _fstrlen farstrnicmp   Same as _fstrincmp farstrncmp    Same as _fstrncmp farstrcmp     Same as _fstrcmp farstradd     Concatenates one string onto another farstrstrip   Strips extra characters out of a string atou          Convert string into decimal number ForFile       Allows wild-card operations on files GetListHandle Gets a handle for a list pFileToBottom Moves a file to the bottom of the list SelectFiles   Brings up a file-selection dialog box SetHilite     Specifies a range of text to be highlighted

