home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_09
/
1109061a
< prev
next >
Wrap
Text File
|
1993-07-08
|
741b
|
39 lines
// testcout.h
// header file for testing windows cout and cerr
#include "CStrWnd.h"
#include "ostrwnd.h"
#include "winstrm.h"
class App : public CWinApp
{
public:
BOOL InitInstance ();
int ExitInstance ();
#if defined (_DEBUG)
void set_exit_code (int code)
// only update if not already set
{if (exit_code == 0) exit_code = code;}
#endif
private:
winstreambuf * cerrbuf, * coutbuf;
ostreamWnd * cerr_window;
#if defined (_DEBUG)
int exit_code;
CMemoryState start, end, difference;
#endif
};
class CMainWindow : public CMDIFrameWnd
{
public:
CMainWindow ();
afx_msg void OnClose ();
afx_msg void OnAbout ();
afx_msg void OnTest ();
DECLARE_MESSAGE_MAP ();
};