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 / Passing control to another DB program?!

Author
Message
Angeleyes
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 16th Apr 2003 19:23
Is it possible to write a DBC program and have it call another BDC program?

For example:
(Prog1)

Print " Hello, this is the first DB program"
Print "and after 5 seconds it will run the second DB program."
Wait 5000


(Prog2)

Print "Hi again"

You understand??

Ta ta for now
Mary
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Apr 2003 19:53
Yes.

I can't remember the exact syntax, look it up in the help files.

Thanks in advance.
All the Best,
StevieVee
Angeleyes
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 16th Apr 2003 23:59
Well I have looked, but cannot find it :-s

So does anyone know the command for calling another program?

bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Apr 2003 00:07
hmmm, i dont have the helpfiles on this computer...but I believe its the EXECUTE command..I think there were a few switches though, so you'll have to look it up for the proper syntax

The 3D Modeler's Group : http://groups.yahoo.com/group/3dModeler/
The Unofficial DB Newsgroup : http://groups.yahoo.com/group/DBMag/
Angeleyes
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 17th Apr 2003 20:10 Edited at: 17th Apr 2003 20:12
Yes it is the Execute command.

But it gives an error 163, which is "Failed to set cooperative level for direct draw"


I guess I should stick to art and leave programming to others!

But I still dont think I was doing anything wrong.... the first program was just this:

Print "Hello"
wait 5000
a1$="cube.exe"
a2$=""
a3$="C:\Angeleyes\"
EXECUTE FILE a1$,a2$,a3$
end


The other program "cube.exe" just draws a 3D cube.

Yet I still got the error...... Strange that!!

Ta ta for now
Mary

Angeleyes
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 17th Apr 2003 20:21
LOL
I just found out why!!

It is because in DB you cannot open a second window when in fullscreen mode.
Multiple windows are not allowed in fullscreen mode, but if the first program is in a window and the second fullscreen (or first one is fullscreen and second in window) then it works fine!

See..... I am learning a bit of programming!

Ta ta for now
Mary

Xoid
22
Years of Service
User Offline
Joined: 8th Mar 2003
Location:
Posted: 17th Apr 2003 20:38 Edited at: 17th Apr 2003 20:39
LOL, pathetic, why couldn't you get your programming friend to solve the problem, you didn't think to ask him?, ofcourse he didn't KNOW either mwhahahahahahah!!!!!!!

Do not anticipate the outcome of the engagement, let nature take it's course, and your tools will strike at the right moment - from "Tao of Jeet Kune Do" by Bruce Lee
Angeleyes
22
Years of Service
User Offline
Joined: 17th Mar 2003
Location:
Posted: 17th Apr 2003 23:25
I was finding out for myself Xoid.
Now..... Shut up because (as usual) you are acting like a silly little child.


Mary

Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 18th Apr 2003 00:16
Fight fight fight!

(How cute...)

Login to post a reply

Server time is: 2025-05-16 11:08:03
Your offset time is: 2025-05-16 11:08:03