INF: Overlays and BINDing Are Not Compatible

ID Number: Q40581

5.x 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

There is no way to compile a program for OS/2, then BIND it to run in

MS-DOS with overlays so that there is only a single executable for

both MS-DOS and OS/2.

To BIND a program to run in MS-DOS, you need a protected-mode

executable. However, protected-mode executables do not understand

overlays. As a result, there is no way to BIND a program that needs

overlays in MS-DOS. You must have two different executables.

Note: The two executables could be combined into one large executable

by creating the real-mode executable and naming it in the STUB

statement in the .DEF file when linking the OS/2 application. There is

no real advantage to this; however, the new .EXE file will be slightly

larger than the two separate files. More information about the STUB

statement is located with the linker description in your reference

material.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax