home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 7.ddi / EXAMPLES / LOADER / READ.ME < prev   
Encoding:
Text File  |  1991-01-28  |  1.3 KB  |  30 lines

  1. LOADER
  2.  
  3. Example of loading a .EXP file from within an Application.
  4. --------------------------------------------------------------------
  5.  
  6. This directory contains a fragment of example code which demonstrates
  7. the use of the "load .EXP file" system call.  It shows how you can
  8. use this call from within your application to load and execute
  9. a .EXP file as an overlay or child program.  In this example, we
  10. call the child program with a FAR call, and when the child has
  11. completed execution, it returns with a FAR return.  You can, of
  12. course, make the interface between the application and child process
  13. more complex depending on your needs.
  14.  
  15. The example child program which we build here is called FARHELLO, and
  16. it simply writes the string hello world on the console and does a FAR
  17. return back to the application.  Note that it does NOT do an INT 21h,
  18. subfunction 4C to exit -- this would cause both the application and 
  19. child to exit.  It instead does a FAR return to get back to the application.
  20.  
  21. To build the example, use the load.bat file in this directory.
  22.  
  23. Execute the example with the command line:
  24.  
  25.     run386 load farhello.exp
  26.  
  27. This example was built with High C-386 Version 1.6, and its compiler driver.
  28. You may have to make small modifications to the batch file which builds it
  29. for other compilers or different versions of High C-386.
  30.