[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2006-10-26
3
Medium Priority
?
257 Views
Last Modified: 2008-02-01
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.");
0
Comment
Question by:marvelsoft
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
deepu chandran earned 500 total points
ID: 17810674
Hi,
Just go through this example program then you will get an idea,
http://ftp.wayne.edu/kermit/a/msphpl.c
Deepu
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question