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

  1. /* This program, ssdownld.c, created by Hilgraeve and assigned to the Download */
  2. /* button, brings up the Receive dialog, as if you selected Transfer|Receive. */
  3.  
  4. /* $Revision: 1.1 $ */
  5. /* $Date: 1993/04/26 15:21:10 $ */
  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 Transfer from menu bar, then Receive from Transfer menu */
  21.     haMenuString(ScriptHandle, "TR");
  22.  
  23.     /* Terminate link between HA/Win and script program */
  24.     haTerminate(ScriptHandle, 0);
  25.     }
  26.  
  27.