我通过API TEXT VIEWER将createfile  copy到modul 里,系统告诉 用户定义错误
但调用其他函数却没问题,
另用他来打开并口如何设置?
请指教

解决方案 »

  1.   

    Dim hfile As Integer
        Dim tmpbt(2) As Byte
        
        hfile = FreeFile
        Open "LPT1" For Binary As #hfile
        
        tmpbt(0) = &H1B
        tmpbt(1) = &H6A
        tmpbt(2) = &H90
        For i = 0 To 2
            Put #hfile, , tmpbt(i)
        Next i
        
        Close #hfile
      

  2.   

    介绍一个控制并行端口的MFC类 详细信息 < 并行通信 >  这个类允许你在所有的Windows平台下使用低级端口I/O接口存取并口数据。例子程序使用一个定制的MFC/C++类实现了PC到PC之间通过“PLT1”进行简单的C/S文件传输。http://www.vckbase.com/code/listcode.asp?mclsid=9&sclsid=909
      

  3.   


    http://www.yesky.com/20000905/111322.shtmlhttp://www.csdn.net/cnshare/soft/16/16791.shtmhttp://www.vckbase.com/document/listdoc.asp?mclsid=9&sclsid=909http://www.chinaoak.com/download/sources/system/hardware/parallelport.ziphttp://www.skycn.com/soft/11788.htmlhttp://download.pchome.net/development/linetools/13715.html
    http://www.skycn.com/sort/sort2090600_indate_DESC_1.html