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 / runtime error 1514 24 bit not supported.

Author
Message
jayell leedham
19
Years of Service
User Offline
Joined: 24th Jan 2006
Location: North Yorkshire
Posted: 23rd May 2006 19:02
runtime error 1514 24 bit depth not supported. Select either 16 or 32 bit mode at line 0".
This comes up on running the exe programme on a different computer to the one the prog is compiled on.
Even with a simple 'load bitmap' (see code attached). The bmp is a simple 8/256 one.
Can anyone tell me why??
John Leedham

Attachments

Login to view attachments
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd May 2006 22:03
Not all cards support 24-bit mode, so switch to 32.

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike
jayell leedham
19
Years of Service
User Offline
Joined: 24th Jan 2006
Location: North Yorkshire
Posted: 23rd May 2006 23:36
Thanks Phaelax, BUT how do I do that? Is there a command on DBPro?
The bitmap is 8/256 colours, not 24 bit at all. It was attached to my original message (it downloaded back to me OK).
Sorry you did not get the source code - it is simply "load bitmap "test.bmp":suspend for key".
John L
darknut
18
Years of Service
User Offline
Joined: 25th May 2006
Location:
Posted: 25th May 2006 21:41
i think the command you are looking for to set the bit depth is:
set display mode screenSizeX, screenSizeY, bitDepth
Bahamut
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Brighton
Posted: 26th May 2006 00:28 Edited at: 26th May 2006 01:08
I'm not sure if this is the answer, but check the display settings in conrol panel of your operating system.

You caould also try



I think that's it, anyway.

I don't think it has anything to do with the bitmap, just your display mode.

Represent
21
Years of Service
User Offline
Joined: 24th Dec 2003
Location:
Posted: 26th May 2006 01:15 Edited at: 26th May 2006 01:16
Here, the command is

setdisplaymode 1024,768,32

that is just an example. 1024x768 res and 32-bit.

Formerly: xTransworldx & Modest Mouse
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 30th May 2006 17:57
Quote: "setdisplaymode 1024,768,32"

set display mode 1024,768,32

[/center]

Login to post a reply

Server time is: 2025-05-25 01:41:47
Your offset time is: 2025-05-25 01:41:47