OS/2 PM Programs Must Use NOGRAPH.OBJ and NOEVENT.OBJ (71111)



The information in this article applies to:

  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
  • Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 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 "/O" 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:

#OBJECTS
nograph
noevent

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

BUILDRTM /Lp <run-time name> <ASCII filename)

The <run-time name> is the name of the DLL that you want to create, and the <ASCII filename> is the name of the above ASCII file. You should not use an extension on the <run-time name>.

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

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

NOTE: Page 599 of the "Microsoft Basic 7.0: Programmer's Guide" 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 "Basic OS/2 PM Toolkit Supplement" available from Microsoft Support Services.

Modification Type:MajorLast Reviewed:12/12/2003
Keywords:KB71111