自己大概试了下,表示参数太多,也知道是否有问题.故发贴求助,还请大家帮忙.
下面这个玩意也许错误百出,真心求教.
Local $iControlType = 66
Local $iScreenNo = 1
Local $iWidth = 64
Local $iHeight = 32
Local $iScreenType = 1
Local $iPixelMode = 1
Local $iDataDA = 0
Local $iDataOE = 1
Local $iRowOrder = 0
Local $iFreqPar = 0
Local $iBaud = 57600
Local $iSocketPort = 5005
Global $BX=DllOpen("BX_IV.dll")
Local $init=DllCall($BX,"int","InitDLLResource","hwnd",0)
Func InitDLLResource($handle)
Return DllCall($BX,"int","InitDLLResource","hwnd",0)
EndFunc
Func Addscreen($nControlType,$nScreenNo,$nWidth,$nHeight,$nScreenType,$nPixelMode,$nDataDA,$nDataOE,$nRowOrder,$nFreqPar,$Pcom,$nBaud,$pSocketIP,$nSocketPort)
$add=DllCall($BX,"int","Addscreen","int",$nControlType,"int",$nScreenNo,"int",$nWidth,"int",$nHeight,"int",$nScreenType,"int",$nPixelMode,"int",$nDataDA,"int",$nDataOE,"char",$Pcom,"int",$nBaud,"char",$pSocketIP,"int",$nSocketPort)
If $add=0xf8 Then Return SetError(1)
If $add=0xff Then Return SetError(2)
Return 0
EndFunc
|