home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / debug / prtque / prtque.cpp < prev    next >
Text File  |  1996-10-29  |  984b  |  35 lines

  1. //************************************************************
  2. // Problem Determination  - Trace Queue Browser
  3. //
  4. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  5. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  6. // All Rights Reserved.
  7. //************************************************************
  8. #include <istring.hpp>
  9. #include <ithread.hpp>
  10. #include "trbrowse.hpp"
  11.  
  12. const unsigned PMQUEUE_SIZE = 2000;
  13. IString        QUEUE_NAME("PRINTF32");       // base name of queue
  14.  
  15. int main( )
  16. {
  17.    // Note that we increase the size of the PM
  18.    // message queue to try to avoid filling
  19.    // it up.
  20.    IThread::current().initializeGUI(PMQUEUE_SIZE);
  21.  
  22.    // Create the trace browser window
  23.    TraceBrowser traceWindow(QUEUE_NAME);
  24.  
  25.    // Give the window the focus and show it.
  26.    // focus (try to be non-intrusive).
  27.    traceWindow
  28.      .setFocus()
  29.      .show();
  30.  
  31.    IThread::current().processMsgs();
  32.    IThread::current().terminateGUI();
  33.    return 0;
  34. }
  35.