Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening/initializing any device

Status
Not open for further replies.

mattlacey

Programmer
Oct 11, 2001
22
GB
I'm having to rewrite a C++ program that prints to a label printer. the only problem is that the printer path can be either a com port, an lpt port or a printer path. (This is possible because the printer doesn't need drivers to run)

Is there a function (or component) that anyone knows of that will let me open all these devices in the same way or am i going to have to work out which one has been provided and then print in an appropriate way.

FYI. C++ has a function OPEN() that will initialize any MCI device and that is what i am trying to find a replacement to.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top