CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Splash screen

  1. #1
    Join Date
    Feb 2010
    Posts
    6

    Splash screen

    Hi! i need a program that displays a splash screen until its process gets terminated. can you help me?
    I found some c# projects but i don't have any experience with that language so i have no idea how to compile them.
    thanks in advance for your help

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Splash screen

    I found some c# projects but i don't have any experience with that language
    A splashscreen is nothing more than a borderless window. Create a window, show it from your main function, start the thread and wait for it until it's done. Close the splash window, and show the main window.

  3. #3
    Join Date
    Feb 2010
    Posts
    6

    Re: Splash screen

    Quote Originally Posted by Skizmo View Post
    A splashscreen is nothing more than a borderless window. Create a window, show it from your main function, start the thread and wait for it until it's done. Close the splash window, and show the main window.
    i don't know how to do that because i got a lot of experience with java but it takes too much to load. can you make it for me? thanks

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Splash screen

    Are you writing in MFC ? If not, what project type are you using ?
    Last edited by Skizmo; February 16th, 2010 at 01:41 PM.

  5. #5
    Join Date
    Feb 2010
    Posts
    6

    Re: Splash screen

    my project is written in java. i need a program that shows a splash screen and waits until it gets terminated. the splash screen will be executed by a c++ app that just starts up the jre. i don't know what MFC means unfortunately because i'm a real newbie to c++

  6. #6
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Splash screen

    check the attachment.. it will serves your purpose properly.. use SplashClient.Cpp to show splash and put ur initialization code in place of Sleep() fn.

    This files are written in MFC.
    Attached Files Attached Files

  7. #7
    Join Date
    Feb 2010
    Posts
    6

    Re: Splash screen

    Quote Originally Posted by hypheni View Post
    check the attachment.. it will serves your purpose properly.. use SplashClient.Cpp to show splash and put ur initialization code in place of Sleep() fn.

    This files are written in MFC.
    thanks! that works perfect

  8. #8
    Join Date
    Feb 2010
    Posts
    6

    Re: Splash screen

    uhm... what's the visual c++ version of execl?

  9. #9
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Splash screen

    visual c++ version of execl ????

  10. #10
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Splash screen

    Quote Originally Posted by dosse91 View Post
    uhm... what's the visual c++ version of execl?
    I think you are looking for ShellExecute.

  11. #11
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Splash screen

    I dont think so.. Can u understand his words "version of execl" ??

  12. #12
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Splash screen

    c++ version of execL. A execute command... hence the shellexecute.

  13. #13
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Splash screen

    okay..

  14. #14
    Join Date
    Feb 2010
    Posts
    6

    Re: Splash screen

    sorry for my bad english. shellexecute works fine!
    thanks a lot!

  15. #15
    Join Date
    Dec 2009
    Posts
    161

    Re: Splash screen

    I too would like to create a splash screen (non mfc). I was just wondering what the standard size is for a splash screen(width/height) and how I can show it in the very center of the screen (in a nutshell, how calculate x,y based on the screen resolution)

    thanks

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured