home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / best_66 / hawtd1 / sopen.c < prev    next >
Encoding:
Text File  |  1993-04-26  |  874 b   |  27 lines

  1. /* This program, sopen.c, created by Hilgraeve and assigned to the Open */
  2. /* button, brings up the selected session, as if you selected File|Open. */
  3.  
  4. /* $Revision: 1.1 $ */
  5. /* $Date: 1993/04/26 15:20:56 $ */
  6.  
  7. /* Define main function, which is always the starting point of C programs. */
  8. /* (The term "void" indicates that the function returns no value.) */
  9. void main ()
  10.     {
  11.     /* Declares a variable and initializes it to zero. */
  12.     long ScriptHandle = 0;
  13.  
  14.     /* Establish a link between this script program and HA/Win */
  15.     ScriptHandle = haInitialize(0, 0, 0, 0);
  16.  
  17.     /* Exit if intialization of link with HA/Win failed */
  18.     if (ScriptHandle == 0) exit();
  19.  
  20.     /* Same as selecting File from menu bar, then Open from File menu. */
  21.     haMenuString(ScriptHandle, "FO");
  22.  
  23.     /* Terminate link between HA/Win and script program */
  24.     haTerminate(ScriptHandle, 0);
  25.     }
  26.  
  27.