home *** CD-ROM | disk | FTP | other *** search
/ NetComm Communications 5 / NetComm.iso / resource / netcomm / wcomm / disk3 / sfind.c_ / sfind.bin
Encoding:
Text File  |  1994-10-24  |  883 b   |  27 lines

  1. /* This program, sfind.c, created by Delrina, finds selected files */
  2. /* as if you selected View|Find Session */
  3.  
  4. /* $Revision:   1.2  $ */
  5. /* $Date:   06 Apr 1993 17:04:40  $ */
  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 Delrina WinComm PRO */
  15.     ScriptHandle = dcInitialize(0, 0, 0, 0);
  16.  
  17.     /* Exit if intialization of link with Delrina WinComm PRO failed */
  18.     if (ScriptHandle == 0) exit();
  19.  
  20.     /* Same as selecting View from the menu bar, then Find from View menu */
  21.     dcMenuString(ScriptHandle, "VS");
  22.  
  23.     /* Terminate link between Delrina WinComm PRO and script program */
  24.     dcTerminate(ScriptHandle, 0);
  25. }
  26.  
  27.