Microsoft KB Archive/40726

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:54, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

COBOL 3.00/3.00A Can Make Bound Executables for OS/2, MS-DOS

PSS ID Number: Q40726 Article last modified on 02-02-1989

3.00 3.00A | 3.00 3.00A MS-DOS | OS/2

Summary: Executable applications created with Microsoft COBOL 3.00 and 3.00A can be compiled and run under MS-DOS or MS OS/2. Microsoft COBOL can also be used to create a bound application, which is a single .EXE program that will run under either MS-DOS or MS OS/2.

More Information: When compiling a program using Microsoft COBOL, the resultant .EXE file will only run under the same operating system that it was compiled and LINKed under. For instance, if the program was compiled and LINKed in OS/2 protected mode, the .EXE file created will only run in protected mode. If the program was compiled and LINKed in MS-DOS (or OS/2 real mode), the .EXE file created will only run in MS-DOS (or OS/2 real mode). However, if you use BIND.EXE, you can transform an MS-DOS .EXE program into a bound application that will run under either operating system. An example of how to compile, LINK, and bind a COBOL program follows: COBOL myprog; LINK myprog; BIND myprog cblbind.lib doscalls.lib -n @cblbind.not;

Copyright Microsoft Corporation 1989.