sihu国产精品永久免费_日韩午夜在线视频_久久99中文字幕伊人_古代男男嗯…啊h总攻

cetee
級別: 略有小成
精華主題: 0
發帖數量: 73 個
工控威望: 218 點
下載積分: 10539 分
在線時間: 580(小時)
注冊時間: 2010-08-05
最后登錄: 2024-12-23
查看cetee的 主題 / 回貼
樓主  發表于: 2018-08-20 09:32
初學vb.net編程,請各位幫幫忙 vb.net報錯

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim iRet As Integer
        Dim szDeviceName As String = "d0"         'List data for 'DeviceName'
        Dim iNumberOfDeviceName As Integer = 2  'Data for 'DeviceSize'
        Dim sharrBufferForDeviceValue() As Integer
        DotUtlType1.ActLogicalStationNumber = CInt(1)
        'The Open method is executed.
        iRet = DotUtlType1.Open()

        iRet = DotUtlType1.ReadDeviceBlock(szDeviceName,
                                                           iNumberOfDeviceName,
                                                                           sharrBufferForDeviceValue(0))


    End Sub
End Class