CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2000
    Posts
    5

    Direct copy to printer port under Win NT

    Hi all,

    I need to make a litle program that only copy the
    to lpt1 on Win NT.

    All is ok with the code, but after starting the printer do not print.

    I try to start in MS DOS copy myfile lpt1.

    The system reports : 1 file copied and so on, but nothig happen with printer.

    The printer is ok and I can print with edit.

    Is it possible to use lpt1 directly under NT ?

    Many thanks.


  2. #2
    Join Date
    Aug 1999
    Location
    Romania, Bucharest
    Posts
    253

    Re: Direct copy to printer port under Win NT

    look in MSDN Library at CreateFile API Reference

    let me know if this help


  3. #3
    Join Date
    Jul 2000
    Posts
    5

    Re: Direct copy to printer port under Win NT

    Thanks for the answer, but it is not the solution.

    I use the sandart ASCII open for file open and all
    working well on Win98.

    I do not know if it is NT bug or NT setting.

    It is not working also on 2000 and NT Workstation.

    Many thanks.


  4. #4
    Join Date
    Aug 1999
    Location
    Romania, Bucharest
    Posts
    253

    Re: Direct copy to printer port under Win NT

    can you, please, post some code here?



  5. #5
    Join Date
    Jul 2000
    Posts
    5

    Re: Direct copy to printer port under Win NT

    Hi,
    the code is very simple.

    But you can try it with simple MS DOS copy to lpt1.

    Regards.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured