Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2007, 10:22 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default why isn't my splash screen loading?

I made a program and I am wondering why the splash screen hasn't loaded

Code:
;IMAGES
;load splash screen
splash$ = LoadImage("splashscreen.bmp")   ;the splash screen
and later draws said image

Code:
;Display the splash screen for 7 seconds
DrawImage(splash$, 320,240)
Flip
Delay 7000
but I always get an error message saying "Image does not exist". I have the source code file in a folder with the image and I assumed that worked. I also tried using the actual directory on my computer "C:\Docs and settings...etc.", but that also failed. What am I doing wrong?

I will make C++ my bitch.
 
Old July 4th, 2007, 07:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. this is a VB forum.. you may have better luck in a c++ one...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old July 5th, 2007, 10:32 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I don't know that a file reference that is unqualified will necessarily look in the folder where the app is running.

I know that the file-system's "Current Drive" and "Current Folder" will be searched, as well as all of the folders in the environments path entry...

So try either setting the current drive and folder, or fully qualifying the file name:
    "[u]C:\<whatever . . . >\</u>SplashScreen.bmp".





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to createa Splash Screen awais_syed Beginning VB 6 3 August 24th, 2007 03:29 AM
Splash form umeshtheone Beginning VB 6 1 June 26th, 2007 06:27 PM
splash screen query demac43 Visual Basic 2005 Basics 2 May 15th, 2007 03:20 PM
nedd a flash loading screen with percentage scrowler Flash (all versions) 10 November 27th, 2004 01:07 AM
Splash Screen dodorisio Beginning VB 6 3 March 25th, 2004 08:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.