hardware interaction

A

anant_tickoo

how to interact with printer port in c++ on NT based system?

i want to send the data to printer port and also want to read from it
but Nt system in not allowing me to do that.

help needed for that
 
B

benben

how to interact with printer port in c++ on NT based system?
i want to send the data to printer port and also want to read from it
but Nt system in not allowing me to do that.

help needed for that

I'm not quite sure but maybe you can try the following:

std::string str = "hello";
std::eek:fstream printer("LPT1");
printer << str;

Ben
 
J

John Harrison

how to interact with printer port in c++ on NT based system?

i want to send the data to printer port and also want to read from it
but Nt system in not allowing me to do that.

help needed for that

C++ doesn't not define any interaction with hardware it is all
abstracted through streams.

For an answer that works for NT you need to ask in a Windows programming
group, because this is really a Windows programming question not a C++
question. Try for instance.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top