TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RICHARD HIRNER
from: JONATHAN DE BOYNE POLLARD
date: 1998-03-17 11:35:00
subject: Loading EXEs into RAM

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.