Microsoft KB Archive/71111

= OS/2 PM Programs Must Use NOGRAPH.OBJ and NOEVENT.OBJ =

Article ID: 71111

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0
 * Microsoft BASIC Professional Development System 7.1

-



This article was previously published under Q71111



SUMMARY
When compiling a Basic program for the OS/2 Presentation Manager that uses the run-time DLL (compiling without the &quot;/O&quot; option), you must first create a custom run-time DLL that contains the NOGRAPH.OBJ and NOEVENT.OBJ stub files.



MORE INFORMATION
The custom run-time DLL may be created as follows:

Create an ASCII text file with the following information:


 * 1) OBJECTS

nograph

noevent

The run-time DLL may then be created with the following command:

BUILDRTM /Lp   is the name of the DLL that you want to create, and the  is the name of the above ASCII file. You should not use an extension on the .

NOTE: You must have told Basic to &quot;retain component files&quot; when you ran SETUP.EXE.

For more information about custom run-time libraries and how to link them to your program, refer to the &quot;Building Custom Run-Time Modules&quot; section of your manuals.

NOTE: Page 599 of the &quot;Microsoft Basic 7.0: Programmer's Guide&quot; for Basic 7.00 and 7.10 states that you cannot use any of Basic's graphics or event-trapping commands for programs that will run in an OS/2 VIO window. This also applies to PM programs. The same page states that creating PM programs using Basic is not valid; however, it is possible to do this. For more information about writing Basic PM programs, refer to the &quot;Basic OS/2 PM Toolkit Supplement&quot; available from Microsoft Support Services.

Additional query words: BasicCom

Keywords: KB71111

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.