printing with a c programm

This is a discussion on printing with a c programm within the C++ Programming forums, part of the General Programming Boards category; i've more questions =) how can i print something with a c programm? i mean when you start the programm ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Posts
    5

    printing with a c programm

    i've more questions =)

    how can i print something with a c programm?

    i mean when you start the programm the printer prints a text
    at this question too, there are no useable exambles in forum i think
    i mean im not to laizy to use the search function ; )

    thanks for help

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    How about being more specific about
    a) what OS/Compiler you're using
    b) what type of program you're trying to write (console or GUI)
    c) maybe even what sort of printer you have, traditional, USB, network?

    Also, what have you actually tried as a result of your searches, and what results did you get?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    5
    i use visualstudio 2005
    console application

    and at first for a usb printer
    i mean a usb printer is more important than the ltp1 one

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    >>i mean a usb printer is more important than the ltp1 one

    Not true -- the only difference is speed, usb is faster than lpt1, but more complicated too. You can't just open a FILE handle to a usb port like you can LPT1. there are printer functions in www.codeproject.com that can be used from console programs -- just have to use win32 api functions, such as .OpenPrinter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 02:20 AM
  3. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 07:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 03:46 AM
  5. Printing
    By Dual-Catfish in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-25-2002, 08:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21