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

Comparing trunk/RenegadeMapSelector/RenegadeMapSelector.cpp (file contents):
Revision 90 by douglas, 2003-03-15T22:15:08-08:00 vs.
Revision 96 by douglas, 2003-03-22T20:42:23-08:00

# Line 119 | Line 119 | int main(int argc, char* argv[])
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
# Line 131 | Line 132 | int main(int argc, char* argv[])
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                                  );
# Line 151 | Line 153 | int main(int argc, char* argv[])
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
# Line 385 | Line 388 | int CALLBACK selector(HWND hwndDlg, UINT
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) +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines