Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   C++ [BCB]wo werden die Forms deklariert(Thema SplashScreen)? (https://www.delphipraxis.net/127986-%5Bbcb%5Dwo-werden-die-forms-deklariert-thema-splashscreen.html)

messie 22. Jan 2009 10:55


[BCB]wo werden die Forms deklariert(Thema SplashScreen)?
 
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

Der Jan 22. Jan 2009 11:32

Re: [BCB]wo werden die Forms deklariert(Thema SplashScreen)?
 
Schau mal da


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz