home *** CD-ROM | disk | FTP | other *** search
-
- Installation Instructions for 286|DOS-Extender Lite (TM)
-
- Technical Support Email: tech-support@pharlap.com
- Phar Lap Software, Inc. BBS: +1 617 661 1009 (300-9600, 8N1)
- 60 Aberdeen Ave. Voice: +1 617 661 1510
- Cambridge, MA 02138 FAX: +1 617 876 2972
-
- Welcome, and thank you for using Phar Lap's 286|DOS-Extender Lite 3.0.
- Lite is a special trial version of Phar Lap's award-winning
- 286|DOS-Extender SDK designed for users of Microsoft's Visual C++ 1.0. If
- you enjoy using 286|DOS-Extender Lite, we hope that you will consider
- purchasing our full-featured SDK.
-
- These notes explain how to install Lite on your hard disk, provide a
- simple description of building one of the example programs, and describe
- other documentation files on this diskette. A complete description of how
- to compile for protected mode can be found in LITE286.DOC, described
- below.
-
- 286|DOS-Extender Lite is a product of Phar Lap Software, Inc. If you
- you require assistance during installation, please contact Phar Lap
- Software Technical Support. Please do not contact Microsoft Corporation
- with questions about this product.
-
- *******************************************************************************
- Other Documentation
- *******************************************************************************
-
- There are several other files which contain valuable information about
- 286|DOS-Extender Lite. These files are copied to a subdirectory called
- \DOC during installation.
-
- LITE286.DOC contains the "Visual C++ 286|DOS-Extender Lite User's Guide."
- It explains how to compile and run DOS-extended programs after installing
- Lite. You may want to print this file and keep it handy as a reference
- while you are writing programs for Lite.
-
- LITEINFO is a short description of 286|DOS-Extender Lite, and contains an
- overview of the major differences between Lite and our full-featured SDK.
- It is identical to the text that is displayed if you run LITE286.EXE with
- no arguments or options.
-
- INTL.DLR contains a list of overseas dealers. If you are outside the USA,
- please feel free to contact either Phar Lap or one of these dealers for
- technical support, or to order your 286|DOS-Extender SDK.
-
- ORDER.FRM provides a convenient way to purchase 286|DOS-Extender SDK.
-
-
- *******************************************************************************
- Installation
- *******************************************************************************
-
- Before installing 286|DOS-Extender Lite, you must have previously
- installed Microsoft Visual C++ Professional Edition 1.0 on your hard
- drive. You must have installed real-mode libraries to use Lite, that is,
- you must have selected (at least) "MS-DOS .EXE Files" from the "Targets"
- menu in the "Library Options" dialog box when you installed Visual C++.
- Lite programs may be compiled either in the Visual Workbench, or from the
- DOS command line. All of our examples are compiled from the DOS command
- line.
-
- For our examples, we assume you have installed Visual C++ in C:\MSVC. If
- you have installed it elsewhere, modify these instructions accordingly.
-
- Installing 286|DOS-Extender Lite is a two-step process. First, you must
- copy all of the files from the distribution diskette to your hard drive.
- Second, you must build a special, protected-mode version of the C run-time
- library. After you have completed both of these steps, you are ready to
- start building protected mode applications!
-
-
- Step 1: Copy Files From Diskette
- --------------------------------
-
- To copy the files from the diskette, insert the distribution diskette
- and type "A:INSTALL". The installation program will then ask you a
- series of questions. You may either install Lite in the suggested
- directory or specify your own location. These instructions assume that
- you install Lite in C:\LITE286. If you have 286|DOS-Extender SDK, you
- should *not* install Lite in the same directory as the SDK.
-
- If you prefer not to use our interactive installation program
- A:INSTALL.EXE, you may copy the files with xcopy:
-
- C:\> xcopy a:\ c:\lite286\. /s
-
-
- Step 2: Build a Visual C++ Run-Time Library
- -----------------------------------------
-
- Instead of using the large-model real-mode LLIBCE.LIB that comes with
- Visual C++, 286|DOS-Extender Lite requires a protected-mode library called
- LLIBCEP.LIB. LLIBCEP.LIB is based on LLIBCE.LIB but contains some small
- but important modifications for protected mode. The batch program
- \LITE286\MSVC\LIB\MKLIB.BAT creates LLIBCEP.LIB from a copy of
- LLIBCE.LIB. The new library is created in \LITE286\MSVC\LIB. MKLIB.BAT
- does not in any way modify files in the \MSVC directory tree.
-
- MKLIB.BAT should be executed while \LITE286\MSVC\LIB is the current
- directory:
-
- C:\> cd \lite286\msvc\lib
- C:\LITE286\MSVC\LIB> mklib l e \msvc\lib
-
- MKLIB.BAT invokes LIB.EXE from Microsoft Visual C++ 1.0 -- if MKLIB.BAT
- fails, check that you installed Visual C++ correctly, and that \MSVC\BIN
- is in your PATH environment variable.
-
-
- *******************************************************************************
- Building Sample Executables
- *******************************************************************************
-
- The Microsoft Visual C++ compiler, CL.EXE, is capable of creating
- protected-mode executables using the (nearly undocumented) "-Lp" switch,
- and the "STUB" directive of a .DEF file. An example of creating a
- protected-mode program is presented here.
-
- LITE286.DOC provides complete details of the build process; it also
- describes LITE286.EXE and GORUN286.EXE, the programs which actually load
- and execute your program in protected mode.
-
-
- Microsoft Visual C++ -- Compiling with CL
- -----------------------------------------
-
- CL.EXE uses certain environment variables to control its operations.
- These variables are not strictly required, but we will use them in this
- demonstration. For complete information about LIB and INCLUDE, please
- consult the Microsoft documentation.
-
- The LIB environment variable contains a list of directories in which to
- search for libraries. This list must include Lite's library directory in
- addition to Visual C++'s.
-
- The PATH environment variable must include both Lite's executable
- directory and Visual C++'s.
-
- C:\LITE286\EXAMPLES> set LIB=\lite286\msvc\lib;\msvc\lib
- C:\LITE286\EXAMPLES> set PATH=\dos;\msvc\bin;\lite286\bin
- C:\LITE286\EXAMPLES> set INCLUDE=\msvc\include;\lite286\inc
-
- C:\LITE286\EXAMPLES> cl -AL -Lp hello.c
- C:\LITE286\EXAMPLES> bind286 hello.exe
- C:\LITE286\EXAMPLES> hello
- Hello from protected mode!
-
- C:\LITE286\EXAMPLES> cl -AL -Lp hello.c \lite286\msvc\lib\example.def
- C:\LITE286\EXAMPLES> hello.exe
- Hello from protected mode!
-
- In the first example, the "stub loader", that is, the real-mode code
- required to load 286|DOS-Extender Lite, is attached to hello.exe by the
- program BIND286.EXE. In the second example, EXAMPLE.DEF directs the
- Microsoft linker (LINK.EXE) to include the stub loader. More information
- about the default stub loader, GORUN286.EXE, is in LITE286.DOC.
-
-
-
- *******************************************************************************
- What Next?
- *******************************************************************************
-
- You have now completely installed 286|DOS-Extender Lite, and are ready to
- build multimegabyte programs. Please read the file LITE286.DOC for more
- information on protected-mode programming.
-
- We sincerely hope that you find 286|DOS-Extender Lite both useful and easy
- to use. If Lite makes you more productive, then consider what our
- full-featured 286|DOS-Extender SDK can do for you! Ordering information
- is contained in the files LITEINFO, ORDER.FRM, and INTL.DLR.
-