main.h
资源名称:treesize.zip [点击查看]
上传用户:dfhlxjd
上传日期:2007-01-07
资源大小:12k
文件大小:1k
源码类别:
Shell编程
开发平台:
Visual C++
- //----------------------------------------
- // (c) Reliable Software 1997
- //----------------------------------------
- #ifndef _MAIN_H_INCLUDED
- #define _MAIN_H_INCLUDED
- #include <windows.h>
- void CenterWindow(HWND hwnd);
- HINSTANCE GetHinstance (HWND hwnd);
- class WinException
- {
- public:
- WinException (char* msg)
- : _err (GetLastError()), _msg(msg)
- {}
- DWORD GetError() const { return _err; }
- char* GetMessage () const { return _msg; }
- private:
- DWORD _err;
- char* _msg;
- };
- // out of memory handler that throws WinException
- int NewHandler (size_t size);
- #endif // _MAIN_H_INCLUDED