2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: VTBFileUtil2.cxx,v 1.10 2003/08/19 04:39:38 douglas Exp $ |
5 |
> |
// $Id: VTBFileUtil2.cxx,v 1.12 2003/08/24 07:31:45 douglas Exp $ |
6 |
|
|
7 |
|
#include "VTBFileUtil2.h" |
8 |
|
#include "Chooser.h" |
39 |
|
line.get(); |
40 |
|
} |
41 |
|
|
42 |
< |
args.push_back(arg); |
42 |
> |
if (arg != "") |
43 |
> |
{ |
44 |
> |
args.push_back(arg); |
45 |
> |
} |
46 |
|
} |
47 |
|
while (line.good()); |
48 |
|
} |
98 |
|
|
99 |
|
gui.instance = hInstance; |
100 |
|
gui.icon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_VTB_ICON)); |
101 |
+ |
gui.show = nShowCmd; |
102 |
|
|
103 |
|
for (unsigned index = 1; index < args.size(); index++) |
104 |
|
{ |
234 |
|
<< " -disc\t\tStart in Disc Browse mode\n" |
235 |
|
<< " -scan\t\tStart in Scan Utility mode\n"; |
236 |
|
|
237 |
< |
SendMessage(GetDlgItem(dialog, IDC_USAGE_TEXT), WM_SETTEXT, 0, |
234 |
< |
LPARAM(usage.str().c_str())); |
237 |
> |
SetDlgItemText(dialog, IDC_USAGE_TEXT, usage.str().c_str()); |
238 |
|
} |
239 |
|
break; |
240 |
|
case WM_COMMAND: |
267 |
|
version << programName << " (" << programVersion << ")\n\n" |
268 |
|
<< "Copyright © 2003, Douglas Thrift.\n"; |
269 |
|
|
270 |
< |
SendMessage(GetDlgItem(dialog, IDC_VERSION_TEXT), WM_SETTEXT, 0, |
268 |
< |
LPARAM(version.str().c_str())); |
270 |
> |
SetDlgItemText(dialog, IDC_VERSION_TEXT, version.str().c_str()); |
271 |
|
} |
272 |
|
break; |
273 |
|
case WM_COMMAND: |