119 |
|
{ |
120 |
|
error = "The argument -file must be followed by a filename."; |
121 |
|
|
122 |
+ |
cerr << program << ": " << error << "\n"; |
123 |
|
#ifdef _WIN32 |
124 |
|
MessageBox(NULL, error.c_str(), "Bad Arguments", MB_ICONERROR); |
125 |
|
#else |
132 |
|
{ |
133 |
|
error = "The argument " + arg + " is not a valid argument."; |
134 |
|
|
135 |
+ |
cerr << program << ": " << error << "\n"; |
136 |
|
#ifdef _WIN32 |
137 |
|
MessageBox(NULL, error.c_str(), "Unknown Arguments", MB_ICONWARNING |
138 |
|
); |
153 |
|
{ |
154 |
|
error = "Could not open " + file + "."; |
155 |
|
|
156 |
+ |
cerr << program << ": " << error << "\n"; |
157 |
|
#ifdef _WIN32 |
158 |
|
MessageBox(NULL, error.c_str(), "Bad File", MB_ICONERROR); |
159 |
|
#else |
388 |
|
if (debug) cerr << "downs = {\n"; |
389 |
|
for (unsigned index = count; index > 0; index--) |
390 |
|
{ |
391 |
< |
if (debug) cerr << " [" << index << "] = " << downs[index |
392 |
< |
- 1] << "\n"; |
391 |
> |
if (debug) cerr << " [" << index - 1 << "] = " << downs[ |
392 |
> |
index - 1] << "\n"; |
393 |
|
|
394 |
|
char* down = new char[SendMessage(GetDlgItem(hwndDlg, |
395 |
|
IDC_SELECTED), LB_GETTEXTLEN, downs[index - 1], 0) + |