marvelsoft
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, ®s, ®s);
// Test if Online
#include <dos.h>
union REGS regs;
regs.h.ah = 2;
regs.x.dx = 0;
int86(0x17, ®s, ®s);
if (regs.h.ah) printf("Printer is not ready.");
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, ®s, ®s);
// Test if Online
#include <dos.h>
union REGS regs;
regs.h.ah = 2;
regs.x.dx = 0;
int86(0x17, ®s, ®s);
if (regs.h.ah) printf("Printer is not ready.");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.