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 / Parallel Port

Author
Message
guru of boredom
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: middle of no where
Posted: 13th Nov 2003 03:11
Does anyone know if you can send data to the p. port? If so do you do it with a command or a dll or what? thanks

we are not outnumbered! we are just in a target rich enviroment!
P4 2.4 ghz 120 GB 256 mb GeForce4
kjollen
21
Years of Service
User Offline
Joined: 31st Oct 2003
Location: Cyberspace
Posted: 14th Nov 2003 17:49
You can, but this isn't really a DarkBASIC question. But you can use DarkBASIC a bit. . You have to use HTML, JAVA or MSDOS to do this.

Oh, boy, this is going to take a LOT of explaining, but here goes. Firsly, you have to use the execute file command, something I picked up arounds here. If you want to make it look nice, you put in

sync on
sync rate 0
ccolor = RGB(0,0,0)
INK 0,ccolor
CLS
PRINT "Press any key to continue..."
WAIT KEY
PRINT "executing..."
execute file "C:\WINDOWS\DOSPRMPT.PIF","",""
END

(You can substitute the C:\WINDOWS\DOSPRMPT.PIF part for a premade program in MSDOS.) If you've never programmed in MSDOS then, a black box will come up and type in "start", then, with a little help from what comes up from the screen (if any) and some online tutorials you can get programming. If you have, then no probs.

Happy Programming.

Richard.

In the deep world of programming, if you fail to prepare, you prepare to fail.

Login to post a reply

Server time is: 2025-05-21 16:12:22
Your offset time is: 2025-05-21 16:12:22