Thema: C++ catch (...)

Einzelnen Beitrag anzeigen

Benutzerbild von MrSpock
MrSpock
(Co-Admin)

Registriert seit: 7. Jun 2002
Ort: Owingen
5.865 Beiträge
 
Delphi 2010 Professional
 
#1

catch (...)

  Alt 29. Mai 2014, 09:11
Delphi-Version: 2010
Hallo,

in der Projektdatei wird folgender Text erzeugt:

Code:
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
   try                                                  
   {
      Application->Initialize();
      SetApplicationMainFormOnTaskBar(Application, true);
      Application->CreateForm(__classid(TfrmABC), &frmABC);
      Application->Run();
   }
   catch (Exception &exception)
   {
      Application->ShowException(&exception);
   }
   catch (...)
   {
      try
      {
         throw Exception("");
      }
      catch (Exception &exception)
      {
         Application->ShowException(&exception);
      }
   }
   return 0;
}
//---------------------------------------------------------------------------
Ich bin dabei über die Zeile catch (...) gestolpert.

Was bedeuten die 3 Punkte .
Albert
Live long and prosper


MrSpock

Geändert von MrSpock (29. Mai 2014 um 14:46 Uhr)
  Mit Zitat antworten Zitat