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.

DarkBASIC Discussion / File not found???

Author
Message
Xenxe
16
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 25th Dec 2008 21:59
ok so i just got darkbasic for christmas and i decided to start it up and do the tutorials but when i got to the tutorial when i had to load a bitmap

i tried to load a bitmap like this


load bitmap "sample.bmp"


but when i start it it says somthing like runtime error on line 8 file not found


so i try a different bitmap like cement02.bmp

but i get the same error

i really really really want to use this but if i cant load resources i dont know what to do
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 26th Dec 2008 00:17
The problem is where the files are...
If you don't supply a filepath (e.g. "C:\program files\dark basic...") DB assumes the filepath is your current folder, the folder your program is in. If your media isn't in the same file as your program it wont load without the filepath.
If your program isn't even saved you need the whole filepath. You can copy this from the media viewer.


Goke of the day: [Q]What's a coders' favourite part of an orchestra?
[A]The strings.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 26th Dec 2008 05:40
you would do best to make a project and put all your tutorial resources in that file
Xenxe
16
Years of Service
User Offline
Joined: 25th Dec 2008
Location:
Posted: 29th Dec 2008 08:29
i found the problem long ago thanks anyway


anyway to the last person who posted

i was following the tutorials from the book so i was confused because they dont have a resource download :/

Login to post a reply

Server time is: 2025-06-07 20:30:12
Your offset time is: 2025-06-07 20:30:12