KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q61207: C 6.00 README: Building PM Applications in PWB

Article: Q61207
Product(s): See article
Version(s): 6.00   | 6.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 15-AUG-1990

The following information is taken from the C Version 6.00 README.DOC
file.

Building Presentation Manager Applications in PWB
-------------------------------------------------

The Presentation Manager build options in PWB assume that functions in
your program use the _loadds attribute in the functions that require
it and that exported functions are identified with the _export
keyword.

If your program does not identify exported and/or _loadds functions in
the function header, you need to do two things to build the program
successfully under PWB. First, select the Windows Entry/Exit Codes
check box in the C Compiler Options dialog box. This is the equivalent
of specifying /Gw on the command line.

Second, make sure the exported function names in your .DEF file are
all in uppercase so that they can be found correctly at link time. You
can also build the program successfully by disabling the No Ignore
Case option in the Link Options dialog box, but this is not
recommended.

In particular, you will have the problems described here if you use
PWB to build the example programs in Charles Petzold's book
"Programming the OS/2 Presentation Manager." Programs built using the
makefiles provided in the book will run correctly, but programs built
from within PWB must follow the instructions specified above.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.