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 / shell execution doesn`t work

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Jun 2008 15:19
This doesn`t seem to work:

1. program:



2. program



I get the error "failed to set direct draw" or something like that... Does anyone know what I`m doing wrong?

Thanks, TheComet

Oooooops!!! I accidentally formated drive c.
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 9th Jun 2008 18:02
I'm not sure why you get the error, but use ALWAYS ACTIVE ON before you run the music program (in program 1).

Your signature has been erased by a mod because it's larger than 600x120
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 9th Jun 2008 18:12
Was your file "Music.exe" a DBC program? If so, then you won't be able to set it running from another DBC program - you only seem to be allowed to have one DBC program open at a time. Opening a second triggers the error "failed to set direct draw". No idea why this should be the case, but that's what happens.

Hope this helps!

It is said there are 10 types of people in this world - those who understand binary, and those who have friends!
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 10th Jun 2008 11:20
@robert the robot

Thats true, They are both dbc programs, but I managed to get it working before!

Oooooops!!! I accidentally formated drive c.
master programmer
20
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 25th Jun 2008 09:04
I think both have to be .exe files. I tried running an execute file script using DarkEDIT to an existing DBC .exe file and it had the direct draw error. But when I saved the DarkEDIT work into a DBC .exe file, they both were running fine.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jun 2008 09:07
That`s a good tip, but it doesn`t work either.

Oooooops!!! I accidentally formated drive c.
master programmer
20
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 25th Jun 2008 09:09
That doesn't work for you? Weird.....it works for me. I'll ty to keep experimenting to see what works and doesnt

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jun 2008 09:12
If you set the exe that executes the other one to window mode, it works, if the one being executed is also set to window mode...

edit: heh, heh, What I said is complicated:If you set both exe`s to window mode, it works

TheComet

Oooooops!!! I accidentally formated drive c.

Login to post a reply

Server time is: 2025-06-05 23:55:30
Your offset time is: 2025-06-05 23:55:30