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 / Light guns light pens any toys interfacing ...not standard joystick port

Author
Message
Robyn
19
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 21st May 2006 09:10
Does anyone make a light gun that can be used with Darkbasic?
Does anyone make a light pen that can be used with Darkbasic?
Are the COM1 and COM2 serial ports available to Darkbasic to send
serial data out to custom interfaces and read in from custom made interfaces?
I am waiting for box and book delivery so I can not read any manual
to get these questions anwsered.
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 21st May 2006 14:36
You would need DBC Enhanced. and a DLL that sends and receives data from the serial port.

You'd then need to know the functions inside the DLL and call them as appropriate.

Load dll <Filename>,<reference number> (once only)
call dll <reference number>,<function name(parameters)>

presumably if you found a dll to do this, you would have one function in the dll to receive serial port data, and a seperate one to send.

Unfortunately, I don't know of any existing dlls to do this, although I'm sure there will be some - but there are no DB commands that deal with serial port data within DB
Robyn
19
Years of Service
User Offline
Joined: 21st May 2006
Location:
Posted: 21st May 2006 20:37
OK...sounds like a plan...can't have it in DB but can call external DLL
IF I have installed enhancement upgrade.

I am not familiar with making DLLs.

Is it possible to call EXE files created with the older DOS
based compilers for C, A86 assembler, and QBASIC compiler?
OR
is calling a DLL a specific animal in itself that requires something more than what can be made with QBASIC or A86 assembler?

Login to post a reply

Server time is: 2025-05-25 02:00:02
Your offset time is: 2025-05-25 02:00:02