Link to home
Start Free TrialLog in
Avatar of marvelsoft
marvelsoftFlag for Philippines

asked on

Initialize and Test Printer (LX-300+) in windows 200/xp

Experts,

The codes below iniatialize and test printer LX-300+ using windows 2000/xp but it does'nt work. Is there anything that I forget?


Thanks.

// Initialize the port
#include <dos.h>

union REGS regs;

regs.h.ah = 1;
regs.x.dx = 0;
int86(0x17, &regs, &regs);

// Test if Online

#include <dos.h>

union REGS regs;

regs.h.ah = 2;
regs.x.dx = 0;
int86(0x17, &regs, &regs);

if (regs.h.ah) printf("Printer is not ready.");
ASKER CERTIFIED SOLUTION
Avatar of deepu chandran
deepu chandran
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial