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_ICONWARN); |
137 |
> |
MessageBox(NULL, error.c_str(), "Unknown Arguments", MB_ICONWARNING |
138 |
> |
); |
139 |
|
#else |
140 |
|
message(NULL, error, "Unknown Arguments", GTK_MESSAGE_WARNING); |
141 |
|
#endif |
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 |
234 |
|
if (GetListBoxInfo(GetDlgItem(hwndDlg, IDC_SELECTED)) == 0) |
235 |
|
{ |
236 |
|
MessageBox(hwndDlg, "You need at least one map.", "No Maps", |
237 |
< |
MB_ICONEXCLAMATION); |
237 |
> |
MB_ICONINFORMATION); |
238 |
|
|
239 |
|
return false; |
240 |
|
} |