RH> I am going to write a 16-bit protected mode program with Borland C++
RH> *3.1*. All I need from you is to know how to load an EXE program into
RH> the memory (protected mode!).
Let the operating system worry about that. I wrote 16-bit OS/2 1.x programs
using Borland C++ 3.1 for DOS several years ago, and all of the hassle of
loading the EXE into memory was dealt with by the operating system, and
wasn't my concern.
If you are targetting a non-protected mode operating system, like DOS, then
let your DOS extender worry about loading the EXE. It will stick a stub
program on the front of your executable (TLINK can generate NE format
executables, if memory serves) which will deal with loading your program into
memory and switching into protected mode.
If you aren't using a DOS extender, then you have more worries than can be
dealt with in even a month of echomail messages.
¯ JdeBP ®
--- FleetStreet 1.19 NR
---------------
* Origin: JdeBP's point, using Squish (2:440/4.3)
|