- DOSBox is capable of timing-compatible implementation of the serial ports, which can enable older hardware and software dependent on serial port timing to work; however, some USB devices that are supported by the host OS can act as a replacement for older serial port devices when using the emulator. OS emulation.
- That should be possible, because DOSBox probably exhibits the Serial Port I/O ports that you can use. It remains the task to connect both DOSBox'es - which I know nothing about. – zx485 Jun 19 '18 at 18:59.
- I will try it on the real com port on my XP machine because I suppose I could buy a serial PCI card and put it in the PC to add the real serial ports. I spent $40 on this cable though so if at all possible I'd like to be able to use it.
- For nullmodem: server, rxdelay, txdelay, telnet, usedtr, transparent, port, inhsocket (all optional). Defaults: serial1=dummy serial2=dummy serial3=disabled serial4=disabled An example of how to configure an actual serial port for I/O use: serial1=directserial realport:com1.
- Apr 26, 2016 I too could use the serial support in vDos. My applicatoin requires bi-directional communication with COM1 for control of a hardware device and the ability to print to LTP1. Seems DOSBox works fine with its serial port implementation for the hardware support but I can't print to LTP1. VDos prints just fine but I cannot control the hardwre from.
Active1 year, 6 months ago
Using my Dell Latitude laptop with a docking station that has a physical serial port as COM 1. I can sucessfully run the program using DOSBox and communicate to the device every time under both Windows 7 and Windows 10 using that physical COM port. However I am trying to get a USB - Serial adapter working.
I'm looking for a version of dosbox with print supportI saw the answers to this question Using a printer in Dosbox but I didn't manage to make it work
Community♦
SamSam
closed as too broad by Máté Juhász, n8te, nKn, djsmiley2k, music2myearMar 29 '18 at 18:30
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
6 Answers
You should be able to use printing with a correctly configured SVN-Daum version of DOSBox from http://ykhwong.x-y.net/
Here's the relevant parts of a correct configuration file to print from Windows 8.1, assuming you want to print to a USB (using the print dialog) and not an actual LPT dot-matrix printer.
Now you can print using the Windows print dialogue. Personally, I print from DOS to PrimoPDF and then printing once I see the outputted PDF.
One thing that messed me up is the fact that
multipage=true
means that you will be stuck 'Spooling' in Windows until you hit the DOSBox 'print now' hotkey CTRL+F2
. You can fix this problem by using a sufficient timeout. You will need this timeout to exceed the number of milliseconds that you will have between each page printed from your program. I have mine set to 10000ms (10 seconds).By the way, you set the printer on the SVN-DAUM DOSBox one time using the Windows print dialog box. Then it's the default printer and you won't be prompted by the print dialog again. The default printer resets when you restart DOSBox (
Ctrl-Alt-Home
).Derek R. AustinDerek R. Austin
Try using DOSBox Megabuild 6
For printing to local printer try these settings in DOSBox.conf
It works on my Windows 7 Ultimate x64
VladimirVladimir
Use the Windows program Printfile.
On startup, run the program
This will cause the program
Printfile
to stay resident and watchthe directory C:SPOOL
(you need to create this directory), andany file that is written to this directory will be sent to theprinter.Note: after the file is printed it is erased.
Then, in your DOS programs, replace any print or
writeln(lst, )
statements with writing to the file C:SPOOLTRASH.PCL
or TRASH.TXT
(the name of the file is not important - I call mine 'trash')and after you close the file Printfile
will send the fileto the printer.I find it works as well as printing to LPT1 in Windows XP. (I am sorry to see it go).
Scott17.3k1111 gold badges4848 silver badges9292 bronze badges
Ps/2 Port
Robert PowersRobert Powers
On the DOSBOX support wiki it says that printing is not currently supported. See:
You don't say which operating system you are using. If you're using Windows, you can use CMD.EXE where TheCompWiz's suggestion will work. That will even work with a USB printer (if it supports text printing, i.e. uses PCL as its language) as long as it's mapped to LPT1. And, if you use DOSPRN, you can even print to low-cost USB inkjets. DOSPRN is at
hdhondthdhondt3,11922 gold badges1010 silver badges1212 bronze badges
(that's a CtrlL not the
^
(caret) and an L
)That should print
Hello world!
and spit the page out on the printer attached to LPT1. As far as printing to USB printers… forget it. With networked printers using windows networking shares, you can 'capture' the printer to a port (LPT1-3) and follow the same/similar syntax.The dosbox default build does not include any support for parallel ports. There are 3rd party builds with these features added. One such can be found here: http://home.arcor.de/h-a-l-9000/
kinokijuf6,89888 gold badges4545 silver badges8989 bronze badges
TheCompWizTheCompWiz8,92111 gold badge1717 silver badges1919 bronze badges
This is the answer that worked for me, adapted from https://superuser.com/a/528111/430723
- Download the Mega Build of DosBox at http://home.arcor.de/h-a-l-9000/megabuild.html
- After installing, click 'Edit Configuration' under Start Menu -> DosBox
- Search for 'print' and change the docpath to your desired directory on your computer (not necessarily the directory you mount to in DosBox). For me, I changed it to (not sure if backslashes matter vs. forward slashes, but it is DOS, so it's possible):
c:usersmynamedesktop
- Scrolled down further, changed parallel1 to read
net use LPT1: 'yourprintserveryour printer name' /persistent:yes
(my printer name had spaces in it, so I needed quotes around the path). - Run DosBox as usual and it should work.
Community♦
WillWill
Not the answer you're looking for? Browse other questions tagged printingemulationdosbox or ask your own question.
Active4 months ago
I have done serial port RS-232 connection in C++ using 16-bit compiler (I was using Turbo C++ IDE). It included header file
iammurtazaiammurtazabios.h
Webroot secureanywhere download. which contain all the required functions for reading values from the port. Now I want to read value from serial port using C++ 32-bit Mingw compiler. I am using Dev CPP as my IDE. Here I could not find bios.h
. Are there any special header files available for this purpose in Mingw? I am using 32-bit compiler now because in my college project I got to use Exception handling which I guess is not supported in Turbo C. Please help me out.41222 gold badges99 silver badges2626 bronze badges
1 Answer
Please take a look here:
- RS-232 for Linux and Windows1)
- Windows Serial Port Programming2)
- Using the Serial Ports in Visual C++3)
1)You can use this with Windows (incl. MinGW) as well as Linux. Alternative you can only use the code as an example.
2)Step-by-step tutorial how to use serial ports on windows
3)You can use this literally on MinGW
Here's some very, very simple code (without any error handling or settings):
Kamen rider build episode 18 kissasian. Now you can use
olloolloWriteFile()
/ ReadFile()
to write / read bytes.Don't forget to close your connection:20.5k1111 gold badges8484 silver badges136136 bronze badges