home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_02_08 / 2n08016a < prev    next >
Text File  |  1991-06-17  |  451b  |  20 lines

  1. #define INCL_WIN
  2. #include <os2.h>
  3.  
  4. #include "form.h"
  5.  
  6. HAB hab; /* global accessed during forms auto-initialization */
  7.  
  8. main()
  9. {
  10.     HAB _hab = hab = WinInitialize( 0 );
  11.     HMQ hmsgq = WinCreateMsgQueue( hab, DEFAULT_QUEUE_SIZE );
  12.     QMSG qmsg;
  13.  
  14.     if (FormLoad( HWND_DESKTOP, HWND_DESKTOP, wpForm, 0, 1, 0L ))
  15.         while(WinGetMsg( _hab, &qmsg, 0L, 0, 0 ))
  16.               WinDispatchMsg( _hab, &qmsg );
  17.     return 0;
  18. }
  19. /*end*/
  20.