Thread: Does anyone has a better print (on paper) syntax?

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    17

    Question Does anyone has a better print (on paper) syntax?

    ok, i've actually posted related question.
    but the question that was asked in here is different.

    I wanted to know, does anyone has a better way of printing the RAW text onto a paper with c++?

    the previous method i used doesn't seems to work on every printer and pc.
    worst, it sticks only to LPT1 (coz i dont knw USB).

    may all the lords of C please help me.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Go GUI with your program and use the MFC API: http://www.codersource.net/mfc_print_tutorial_1.html
    If you understand what you're doing, you're not learning anything.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Yep... you might have to use the Win32 API. (You don't really have to write a full GUI program).

    Some printers (like my Canon) don't understand plain ASCII text. This means that you have to use the printer manufacturer's supplied Windows driver. You "talk to" the printer driver via standard Win32 functions. (My printer won't work with DOS applications.)

    The same is true of the USB port. The USB port always requires a driver, and again the supplied Windows driver works with the standard Win32 functions.

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    17
    so i guess using pure unmanaged c++ to print is not going to be a bright solution afterall.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. merging linked lists
    By scwizzo in forum C++ Programming
    Replies: 15
    Last Post: 09-14-2008, 05:07 PM
  2. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  3. Scope And Parameter Passing
    By djwicks in forum C Programming
    Replies: 6
    Last Post: 03-28-2005, 08:26 PM
  4. Replies: 1
    Last Post: 07-31-2002, 11:35 AM
  5. Print data in text file out to paper
    By ooosawaddee3 in forum C Programming
    Replies: 1
    Last Post: 07-24-2002, 08:33 AM