home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource1 / cenvew / winbeep.cmm < prev    next >
Encoding:
Text File  |  1993-06-14  |  515 b   |  11 lines

  1. /*************************************************************************
  2.  *** WinBeep - Sample CEnvi for Windows program to demonstrate calling ***
  3.  ***           a dll function in a Windows library.  In this case,     ***
  4.  ***           will simply call the MessageBeep() function a few times ***
  5.  *************************************************************************/
  6.  
  7. #define  MESSAGE_BEEP_ORDINAL 104
  8. for ( i = 0; i < 3; i++ )
  9.    DynamicLink("USER.EXE",MESSAGE_BEEP_ORDINAL,SWORD16,PASCAL,0);
  10.  
  11.