能否将pDC连接到打印机,然后调用显示函数,即将文字显示到打印机?事先声明,我没有用过,只是在书上看到过这种方法,具体实现得自己摸索了。

解决方案 »

  1.   

    The framework sets this member to TRUE if the Print dialog box will be bypassed for direct printing; FALSE otherwise. The Print dialog is normally bypassed when you print from the shell or when printing is done using the command ID ID_FILE_PRINT_DIRECT.You normally don’t change this member, but if you do change it, change it before you call CView::DoPreparePrinting in your override of CView::OnPreparePrinting.
      

  2.   

    I want to know!thank you!
      

  3.   

    _bios_serialcom 也可以
    WriteFile 也可以
    _outp 也可以不过,我写的都是串口
      

  4.   

    kook
    你说的函数好像只能在dos或console模式下