locked
32 bit system() call in 64 bit world RRS feed

  • Question

  • I have a Windows 32 console appl that makes a system() call to invoke the 'lpr' client as follows:
     system("lpr -S<addr> -P<printer> <file>");
    When done on Windows 32 all is good.
    When done on Windows 64 the call fails with
        'lpr' is not recognized as an internal or external command.
    At a DOS prompt, lpr works ok.
    What does it take to get the 'lpr' command to be recognized from a system() call under Windows 64?
    • Moved by Max Wang_1983 Tuesday, April 26, 2011 5:42 PM forum consolidation (From:Architecture, Tools, and Process for ISVs)
    Friday, October 9, 2009 12:17 AM