Microsoft KB Archive/87514

{|
 * width="100%"|

DOCERR: File Manager Doesn't Associate PWB Makefiles

 * }

Q87514

-

The information in this article applies to:


 * Microsoft C/C++ for MS-DOS, version 7.0

-

SYMPTOMS
Page 67 of C/C++ version 7.0 &quot;Environment and Tools&quot; manual suggests associating a .MAK file with Programmer's WorkBench (PWB) using the File Manager. This will not work as described under Microsoft Windows 3.1; however, it will work as described under Windows 3.0. When a .MAK file is associated with PWB using the command line

  pwb.pif /PP with the association feature of the Windows 3.1 File Manager, an error occurs. The error says that the association is not an executable and cannot be used.

CAUSE
Windows 3.1 will not allow parameters to be specified for the command to be executed on an association. Windows 3.0 does allow this syntax.

RESOLUTION
A possible workaround is to create a batch file to be associated with the .MAK files. For example:

  if &quot;%1&quot; == &quot;&quot; goto label call pwb.exe /PP %1 goto end :label call pwb.exe :end With the Windows PIF Editor, change the program filename for PWB.PIF from PWB.EXE to the name of the batch file created (for example, PWB.BAT). This will simulate the preferred response.

Additional query words: 7.00

Keywords : kb16bitonly

Issue type :

Technology : kbVCsearch kbAudDeveloper kbPTProdChange kbZNotKeyword3 kbCVC700DOS