home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / WINCLIP / EXAM54.C < prev    next >
C/C++ Source or Header  |  1993-12-01  |  751b  |  22 lines

  1.   #include "window.h"
  2.   #include <string.h>
  3.   #define NORM    CREATE_VIDEO_ATTRIBUTE(black,white)
  4.   #define CREDITCARDMASK "____-____-____-____"
  5.  
  6.   WPOINTER w;
  7.   char buffer[80];
  8.   main()
  9.   {
  10.     int i,row,col;
  11.     buffer[0] = 0;   /* Make sure first character is null */
  12.     WindowInitializeSystem();
  13.     WindowSaveInitial(0);
  14.     w = WindowInitialize(BORDER,1,1,40,10,NORM,NORM,SINGLEBOX);
  15.     WindowOpen(w);
  16.     WindowDisplay(w,1,NOEFFECT);
  17.     buffer[0] = 0;   /* Make sure first character is null */
  18.     WindowWriteString(w,"Enter A Password",1,1);
  19.     WindowGetMaskPassword(w,2,1,buffer,CREDITCARDMASK,' ','*',0,40,0,"40.");
  20.     WindowWriteString(w,"You entered the following:",3,1);
  21.     WindowWriteString(w,buffer,4,1);
  22.   }