Einzelnen Beitrag anzeigen

messie

Registriert seit: 2. Mär 2005
Ort: Göttingen
1.592 Beiträge
 
Delphi 2009 Professional
 
#1

[BCB]wo werden die Forms deklariert(Thema SplashScreen)?

  Alt 22. Jan 2009, 10:55
Moin,

ich möchte einen Splashscreen nach den Regeln der Kunst einbinden, so wie das im Tutorial von sakura beschrieben wurde und wie ich es auch in Delphi nutze.
Mein Problem: beim Anzeigen des Formulars ist es angeblich noch nicht deklariert.
Zitat:
Show is not a member of TSplash because the type is not yet defined]
Code:
USEFORM("Main.cpp", frm_Main);
USEFORM("FInfo.cpp", frm_Info);
USEFORM("FHelp.cpp", F_Help);
USEFORM("FSplash.cpp", Splash);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        Application->CreateForm(__classid(TSplash), &Splash);
                 
        try
        {

                 Splash->Show();
                 Application->Initialize();
                 Application->CreateForm(__classid(Tfrm_Main), &frm_Main);
                 Application->CreateForm(__classid(Tfrm_Info), &frm_Info);
                 Application->CreateForm(__classid(TF_Help), &F_Help);
                 Application->Run();
                 
        }
        catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
Die Deklaration ist ja in FSplash.h vorhanden, ich hatte erwartet, dass das UseForm auf diese Deklaration verweist.

Hat jemand einen Tipp? Vielleicht kann man das Tutorial dann erweitern.

Danke, Messie
  Mit Zitat antworten Zitat