Thread: Printing to the printer

  1. #16
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    So, you do not know how to open an cmd.exe window or you do not have permissions to do so.

    No one can help you when you can not do anything!

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #17
    Registered User Paderi's Avatar
    Join Date
    Apr 2020
    Posts
    68
    Quote Originally Posted by Salem View Post
    So, you do not know how to open an cmd.exe window or you do not have permissions to do so
    1, yes i can open a command window
    2. yes I have permission to do so
    3. yes this discussion is daunting
    Last edited by Paderi; 04-23-2020 at 09:48 AM. Reason: improvement

  3. #18
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    I've no idea.

    It stopped being a C programming problem when you said you didn't have a physical printer plugged into an actual port labelled LPT1.
    Such things have been obsolete on computers (and especially laptops) for years and years.

    What you need is a website specialising in windows technical support type issues on guiding you through the Windows 10 hoops to 'share' the network printer in such a way that it's visible through the obsolete LPT1 driver.
    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.

  4. #19
    Registered User
    Join Date
    Dec 2017
    Posts
    1,628
    You were asked to run "mode" in a cmd window.
    And instead of doing that you said "can I use system()"?
    The answer is maybe.
    But you still have to find out how to refer to your printer.
    And you still seem to refuse to run the mode command.
    Why?

    As for the discussion being "daunting", that is just silly.
    What is daunting is dealing with someone who refuses to type in a simple command and report back the results.
    Instead of only thinking about yourself, consider how we feel, too.
    I was going to ask you to run a more complex command in powershell, but what would be the point?
    A little inaccuracy saves tons of explanation. - H.H. Munro

  5. #20
    Registered User Paderi's Avatar
    Join Date
    Apr 2020
    Posts
    68
    Quote Originally Posted by john.c View Post
    You were asked to run "mode" in a cmd window.

    I had no idea what you meant by running mode. If you'd said type in the word mode in a command window I would have understood. What might be obvious to yourself, might not be obvious to somemone else.

    This is what I get

    Status for device CON:
    ----------------------
    Lines: 9001
    Columns: 120
    Keyboard rate: 31
    Keyboard delay: 1
    Code page: 437
    Last edited by Paderi; 04-23-2020 at 12:07 PM.

  6. #21
    Registered User
    Join Date
    Dec 2017
    Posts
    1,628
    Quote Originally Posted by Paderi View Post
    I had no idea what you meant by running mode. If you'd said type in the word mode in a command window I would have understood. What might be obvious to yourself, might not be obvious to somemone else.
    I am chastised and humbled.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  7. #22
    Registered User Paderi's Avatar
    Join Date
    Apr 2020
    Posts
    68
    Quote Originally Posted by john.c View Post
    I am chastised and humbled.

    My dear sir, I have a problem. I wish to print a txt file using my network printer from a program written in c and compiled by means of MinGW64? Might I please look forward to your much appreciated advice?

  8. #23
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Salem View Post
    Wired/Wireless doesn't make a bean of difference.

    What matters is that it is on the LAN.

    LPT1 to a Network Printer?? - Spiceworks
    Edit: One of the posters said "NET USE LPT1" only works if the PC actually has an real LPT port to redirect.
    I have no idea if this is true.

    Do you know how to follow hyperlinks?

    If yes, do so!

    If no, find a book that teaches you how to use the Internet!

    Tim S.
    Last edited by stahta01; 04-23-2020 at 02:42 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  9. #24
    Registered User Paderi's Avatar
    Join Date
    Apr 2020
    Posts
    68
    Quote Originally Posted by stahta01 View Post
    find a book that teaches you how to use the Internet!Tim S.
    I hope that if ever I have another question re the c language, you will be on holiday in the Sahara desert.

  10. #25
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    If you have another question about C; I hope you ask a smart question!

    How To Ask Questions The Smart Way

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #26
    Registered User Paderi's Avatar
    Join Date
    Apr 2020
    Posts
    68
    Quote Originally Posted by stahta01 View Post
    If you have another question about C; I hope you ask a smart question!

    How To Ask Questions The Smart Way

    Tim S.
    In future, when you don't know, be a big boy and say so. Rather than waste people's time.
    Last edited by Paderi; 04-24-2020 at 03:29 AM. Reason: improvement

  12. #27
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    This seems to have run it's course.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing with printer
    By g4j31a5 in forum C++ Programming
    Replies: 5
    Last Post: 09-14-2006, 01:06 PM
  2. Printing the program to a printer
    By zombie in forum C++ Programming
    Replies: 2
    Last Post: 01-31-2005, 05:31 PM
  3. Printing Debug Without Printer :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-15-2002, 02:18 PM
  4. Printing to a printer....I already did a search :)
    By fastmonkey in forum C++ Programming
    Replies: 1
    Last Post: 10-09-2002, 01:51 AM
  5. printing on network printer
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 10-21-2001, 02:10 PM

Tags for this Thread