home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / skel_azt.sha / report.c < prev    next >
C/C++ Source or Header  |  1986-07-08  |  627b  |  31 lines

  1.  
  2. /*
  3.  *    report.c -- put up a dialog window with a message set up in a
  4.  *                string resource and an "OK" button
  5.  */
  6.  
  7. #include <types.h>
  8. #include <dialog.h>
  9.  
  10. #include "def.h"
  11.  
  12. void
  13. report(str)
  14. char    *str;    /* note that this is a Pascal string, not a C string,
  15.                  * but, because only Pascal routines handle it, no
  16.                  * conversion is necessary
  17.                  */
  18. {
  19.     int    button;
  20.     DialogPtr    dp;
  21.     
  22.     ParamText(str, "", "", "");
  23.         /*
  24.          *    note that this dialog resource has a text box with the
  25.          *    special character string "^0" in it
  26.          */
  27.     dp = GetNewDialog(257, NIL, -1L);
  28.     ModalDialog(NIL, &button);
  29.     DisposDialog(dp);
  30. } /* end of report */
  31.