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

Comparing trunk/VTBFileUtil2/VTBFileUtil2.cxx (file contents):
Revision 277 by douglas, 2003-08-24T00:31:45-07:00 vs.
Revision 291 by douglas, 2003-09-05T01:57:00-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: VTBFileUtil2.cxx,v 1.12 2003/08/24 07:31:45 douglas Exp $
5 > // $Id: VTBFileUtil2.cxx,v 1.13 2003/09/05 08:57:00 douglas Exp $
6  
7   #include "VTBFileUtil2.h"
8   #include "Chooser.h"
# Line 15 | Line 15
15   bool debug = false;
16   string program;
17   string programName = "Vance Thrift and Biller File Utility 2";
18 < string programVersion = "2.0alpha";
18 > string programVersion = "2.0beta";
19   Gui gui;
20  
21 < INT_PTR CALLBACK usage(HWND dialog, UINT msg, WPARAM w, LPARAM l);
22 < INT_PTR CALLBACK version(HWND dialog, UINT msg, WPARAM w, LPARAM l);
21 > static INT_PTR CALLBACK usage(HWND dialog, UINT msg, WPARAM w, LPARAM l);
22 > static INT_PTR CALLBACK version(HWND dialog, UINT msg, WPARAM w, LPARAM l);
23  
24 < inline void arguments(vector<string>& args, const string& command)
24 > static inline void arguments(vector<string>& args, const string& command)
25   {
26          istringstream line(command);
27          string arg;
# Line 47 | Line 47 | inline void arguments(vector<string>& ar
47          while (line.good());
48   }
49  
50 < inline void munge(void)
50 > static inline void munge(void)
51   {
52          AllocConsole();
53          SetConsoleTitle(programName.c_str());
# Line 73 | Line 73 | inline void munge(void)
73          cerr.sync_with_stdio();
74   }
75  
76 < inline void usage(HWND parent)
76 > void usage(HWND parent)
77   {
78          DialogBox(gui.instance, MAKEINTRESOURCE(IDD_USAGE), parent, usage);
79   }
80  
81 < inline void version(HWND parent)
81 > void version(HWND parent)
82   {
83          DialogBox(gui.instance, MAKEINTRESOURCE(IDD_VERSION), parent, version);
84   }
# Line 162 | Line 162 | int WINAPI WinMain(HINSTANCE hInstance,
162                  cerr << "\n";
163          }
164  
165 +        License license;
166 +
167 +        license.check();
168 +
169          if (mode == none)
170          {
171                  Chooser chooser;
# Line 224 | Line 228 | INT_PTR CALLBACK usage(HWND dialog, UINT
228                  center(dialog);
229                  SendMessage(dialog, WM_SETICON, ICON_BIG, LPARAM(gui.icon));
230                  SendMessage(dialog, WM_SETTEXT, 0, LPARAM(programName.c_str()));
231 +
232                  {
233                          ostringstream usage;
234  
235 <                        usage << "Usage: VTBFileUtil [-help | -version | -disc | -scan]\n"
236 <                                << "\nOptions:\n"
237 <                                << "  -help\t\tDisplay this information\n"
238 <                                << "  -version\tDisplay version information\n"
239 <                                << "  -disc\t\tStart in Disc Browse mode\n"
240 <                                << "  -scan\t\tStart in Scan Utility mode\n";
235 >                        usage << "Usage: VTBFileUtil [-help | -version | -disc | -scan]\r"
236 >                                << "\n"
237 >                                << "\r\nOptions:\r\n"
238 >                                << "  -help\t\tDisplay this information\r\n"
239 >                                << "  -version\t\tDisplay version information\r\n"
240 >                                << "  -disc\t\tStart in Disc Browse mode\r\n"
241 >                                << "  -scan\t\tStart in Scan Utility mode\r\n";
242  
243                          SetDlgItemText(dialog, IDC_USAGE_TEXT, usage.str().c_str());
244                  }
# Line 261 | Line 267 | INT_PTR CALLBACK version(HWND dialog, UI
267                  center(dialog);
268                  SendMessage(dialog, WM_SETICON, ICON_BIG, LPARAM(gui.icon));
269                  SendMessage(dialog, WM_SETTEXT, 0, LPARAM(programName.c_str()));
270 +                
271                  {
272                          ostringstream version;
273  
274 <                        version << programName << " (" << programVersion << ")\n\n"
274 >                        version << programName << " (" << programVersion << ")\r\n\r\n"
275                                  << "Copyright © 2003, Douglas Thrift.\n";
276  
277                          SetDlgItemText(dialog, IDC_VERSION_TEXT, version.str().c_str());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines