printing the output of a program written in VC++6 under WinXP

Sharky Forums


Results 1 to 8 of 8

Thread: printing the output of a program written in VC++6 under WinXP

  1. #1
    Mako Shark slavik's Avatar
    Join Date
    May 2001
    Location
    Brooklyn
    Posts
    3,308

    printing the output of a program written in VC++6 under WinXP

    I wrote a program in C in VC++6 under WinXP, and I need to print the output of the program.

    How do I go about doing this?

    I have searched and found nothing.

    Thank You.
    Activation? What activation?
    Quote Originally Posted by Geekkit (from ubuntu forums regarding 'goto' statement)
    Yep it sure does. So does crack cocaine. Existence is not a valid endorsement for being acceptable.
    Quote Originally Posted by Linus Torvalds
    Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it

  2. #2
    Goldfish
    Join Date
    Jun 2001
    Location
    Savannah GA, USA
    Posts
    86
    could always just hit the print screen button and paste the screen image into microsoft word, cut out all the extra crap... and invert the color so the black becomes white and white becomes black... but thats a lot of work, and i'm sure there is an easier way that i just dont know... but if all else fails and you need it right away, that'll do it.
    ACK I think i blew it up...

  3. #3
    Mako Shark slavik's Avatar
    Join Date
    May 2001
    Location
    Brooklyn
    Posts
    3,308
    print screen doesn't work ...

    and the image thing wouldn't work out ...

    Originally posted by JGC84
    could always just hit the print screen button and paste the screen image into microsoft word, cut out all the extra crap... and invert the color so the black becomes white and white becomes black... but thats a lot of work, and i'm sure there is an easier way that i just dont know... but if all else fails and you need it right away, that'll do it.
    Last edited by slavik; 09-09-2003 at 03:29 PM.
    Activation? What activation?
    Quote Originally Posted by Geekkit (from ubuntu forums regarding 'goto' statement)
    Yep it sure does. So does crack cocaine. Existence is not a valid endorsement for being acceptable.
    Quote Originally Posted by Linus Torvalds
    Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it

  4. #4
    Goldfish
    Join Date
    Jun 2001
    Location
    Savannah GA, USA
    Posts
    86
    really? i just tried print screen and paste into MS Paint, not word, that would be my brain not functioning correctly.. i would post a nice JPG of it, but strike9 wont let me log in because they suck... but anyway, soon as they let me in i'll post a pic of it.. here are my steps:

    1) open MS Paint

    2) compile and run your program.

    3) press "PrtScn" button on your keyboard

    4) bring MS Paint to main focus and hit ctrl + v

    5) save as <name>.jpg


    that was all w/ Windows XP and VC++ 6.0 from Visual Studio 6.0.. not that it matters because print screen is pretty much a standered function.
    ACK I think i blew it up...

  5. #5
    Mako Shark slavik's Avatar
    Join Date
    May 2001
    Location
    Brooklyn
    Posts
    3,308
    That's the thing that I don't want to do (maybe even can't), is there anyway to make it just to print the text?

    Originally posted by JGC84
    really? i just tried print screen and paste into MS Paint, not word, that would be my brain not functioning correctly.. i would post a nice JPG of it, but strike9 wont let me log in because they suck... but anyway, soon as they let me in i'll post a pic of it.. here are my steps:

    1) open MS Paint

    2) compile and run your program.

    3) press "PrtScn" button on your keyboard

    4) bring MS Paint to main focus and hit ctrl + v

    5) save as <name>.jpg


    that was all w/ Windows XP and VC++ 6.0 from Visual Studio 6.0.. not that it matters because print screen is pretty much a standered function.
    Activation? What activation?
    Quote Originally Posted by Geekkit (from ubuntu forums regarding 'goto' statement)
    Yep it sure does. So does crack cocaine. Existence is not a valid endorsement for being acceptable.
    Quote Originally Posted by Linus Torvalds
    Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it

  6. #6
    Goldfish
    Join Date
    Jun 2001
    Location
    Savannah GA, USA
    Posts
    86
    ok there is no way that i'm aware of to print the output of the program straight out of VC++, but using the cut/paste meathod and MSpaint you can extract black test on a white background easily.. get the screen img (this has been shrunk)



    from there you can exteract just the output of the program



    then invert the colors so white becomes black and black becomes white giving you



    a lot of work, but thats the best way i can come up with.
    ACK I think i blew it up...

  7. #7
    Hammerhead Shark EverlastingGod's Avatar
    Join Date
    Feb 2003
    Location
    MD
    Posts
    1,364
    redirect?

    yourprogram > file
    print file


    maybe send it directly to the printer?

    yourprogram > lpt1
    (not sure if this works on XP)
    Stay cool
    and be somebody's fool this year

  8. #8
    Mako Shark slavik's Avatar
    Join Date
    May 2001
    Location
    Brooklyn
    Posts
    3,308
    the program.exe > text.txt works thx.

    my printer is connected via USB

    Originally posted by EverlastingGod
    redirect?

    yourprogram > file
    print file


    maybe send it directly to the printer?

    yourprogram > lpt1
    (not sure if this works on XP)
    Last edited by slavik; 09-11-2003 at 01:46 PM.
    Activation? What activation?
    Quote Originally Posted by Geekkit (from ubuntu forums regarding 'goto' statement)
    Yep it sure does. So does crack cocaine. Existence is not a valid endorsement for being acceptable.
    Quote Originally Posted by Linus Torvalds
    Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it

Posting Permissions

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