Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Problems with LOAD IMAGE dbc

Author
Message
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Oct 2003 08:25 Edited at: 24th Oct 2003 23:57
Hello,
I am loading an animation consisting of 8 24-bit bitmaps in DarkBASIC classic and the compilation of the program is fine, but in execution there is a runtime error that tells me it cannot load the bitmap. I single-stepped through the problematic areas of the code and found out that it would just not load any bitmaps. I'll put the code in the source box and a snippet just to make life easier.

Thank you,
Juvy

snippet:


Juvenile Industries
Current Project: The First Room (FPS)
Side Projects: SHIPWRECK, the boss's school project
y!Ck
21
Years of Service
User Offline
Joined: 2nd Jul 2003
Location: Europe - Netherland
Posted: 24th Oct 2003 16:14
are your images in the same directory as you dba source code or else you have to set up a path or something
lets say you placed it in my documents or anything then you have to place the directory of your files first or you place the bitmap's in the directory of the source code

Why live life if you die anyway.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 24th Oct 2003 23:55
uh-oh
There is a typo in the code snipper, on all the filenames for the LOAD IMAGE there should be a "\" between "media" and "trainframe". The folder "media" is in the same folder as the source. Do I maybe need to set the directory to the one the source is in? For extra info the message it dislays when it ecounters the error is "Runtime Error, Could not loat bitmap at line 13. I'll edit the post so it displays the "\"s.

Thanks y!ck,

Juvenile Industries
Current Project: The First Room (FPS)
Side Projects: SHIPWRECK, the boss's school project

Login to post a reply

Server time is: 2024-11-25 14:42:30
Your offset time is: 2024-11-25 14:42:30