ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/VTBFileUtil2.h
(Generate patch)

Comparing trunk/VTBFileUtil2/VTBFileUtil2.h (file contents):
Revision 264 by douglas, 2003-08-16T17:43:49-07:00 vs.
Revision 269 by douglas, 2003-08-19T01:19:24-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: VTBFileUtil2.h,v 1.6 2003/08/17 00:43:49 douglas Exp $
5 > // $Id: VTBFileUtil2.h,v 1.9 2003/08/19 08:19:24 douglas Exp $
6  
7   #ifndef _VTBFileUtil_h_
8   #define _VTBFileUtil_h_
# Line 16 | Line 16
16   #include <sstream>
17   #include <cctype>
18   #include <vector>
19 + #include <set>
20 + #include <map>
21   #include <cstdlib>
22  
23   #include <windows.h>
# Line 32 | Line 34 | struct Gui
34   {
35          HINSTANCE instance;
36          HICON icon;
35        UINT_PTR tips;
37   };
38  
39   extern bool debug;
# Line 76 | Line 77 | inline void center(HWND window)
77          SetWindowPos(window, HWND_TOP, desktop.left + (rect.right / 2), desktop.top
78                  + (rect.bottom / 2), 0, 0, SWP_NOSIZE);
79   }
80 < void tooltip(HWND tool, const string& tip);
80 > inline void error(void)
81 > {
82 >        LPVOID message;
83 >
84 >        FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
85 >                FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0,
86 >                LPTSTR(&message), 0, NULL);
87 >        MessageBox(NULL, LPCTSTR(message), programName.c_str(), MB_ICONERROR);
88 >        LocalFree(message);
89 > }
90  
91   #endif // _VTBFileUtil_h_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines