Help! : How to print a text file in a VC++ 6 application

  • 12 years ago

    In my VC++6 application, I have tried the following:

    system("print testfile.txt /D:lpt1");

    This prints the file to a line printer attached to lpt1.  Unfortunataly I have got a printer plugged into a USB port.  What can I do to print the file through the USB port?  I checked my computer to find out that my USB port has not been configured at all (i.e. I have tried "mode").  I don't think that it is wise to configure any USB port, is it?  Once configured for the printer, the port will not take other things such as memory sticks or externam hard drive, will it?

    Best regards

    Chong Kim

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only 3 numbers of interest to a computer scientist: 1, 0 and infinity”