• 大小: 0.09M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: usb  通信  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using  System.Globalization;
using HID;

namespace HIDTester
{
    public partial class FormMain : Form
    {
        private Hid myHid = new Hid();
        private IntPtr myHidPtr = new IntPtr();

        public FormMain()
        {
            InitializeComponent();
            myHid.DataReceived += new EventHandler(myhid_DataReceived); //订阅DataRec事件
            myHid.DeviceRemoved += new EventHandler(myhid_DeviceRemoved);
            
        }

        Byte[] RecDataBuffer = new byte[90];
        private void GetVendorAndProductIDsFromTextBoxes(ref UInt16 myVendorID

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        144  2015-05-14 22:07  HIDTester\app.config

     文件       5033  2015-05-14 23:58  HIDTester\FormMain.cs

     文件      15406  2015-05-14 21:47  HIDTester\FormMain.Designer.cs

     文件       6020  2015-05-14 21:47  HIDTester\FormMain.resx

     文件      30883  2015-05-14 23:13  HIDTester\hid.cs

     文件       3884  2015-05-14 22:08  HIDTester\HIDTester.csproj

     文件       3839  2015-05-14 23:58  HIDTester\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6819  2015-05-14 23:21  HIDTester\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1240  2013-04-02 19:08  HIDTester\obj\x86\Debug\GenerateResource.read.1.tlog

     文件       2026  2013-04-02 19:08  HIDTester\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       5585  2015-05-14 23:58  HIDTester\obj\x86\Debug\HIDTester.csproj.FileListAbsolute.txt

     文件        978  2015-05-14 22:26  HIDTester\obj\x86\Debug\HIDTester.csproj.GenerateResource.Cache

     文件       2143  2015-05-14 23:58  HIDTester\obj\x86\Debug\HIDTester.csprojResolveAssemblyReference.cache

     文件      24576  2015-05-14 23:58  HIDTester\obj\x86\Debug\HIDTester.exe

     文件        180  2015-05-14 22:26  HIDTester\obj\x86\Debug\HIDTester.FormMain.resources

     文件      10228  2013-04-02 19:08  HIDTester\obj\x86\Debug\HIDTester.FrmMain.resources

     文件      54784  2015-05-14 23:58  HIDTester\obj\x86\Debug\HIDTester.pdb

     文件        180  2015-05-14 22:26  HIDTester\obj\x86\Debug\HIDTester.Properties.Resources.resources

     文件       7897  2013-02-21 15:52  HIDTester\obj\x86\Debug\ResolveAssemblyReference.cache

     文件       4608  2015-05-14 22:26  HIDTester\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       5915  2015-05-14 22:08  HIDTester\obj\x86\Release\DesignTimeResolveAssemblyReferences.cache

     文件       6944  2015-05-14 22:09  HIDTester\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2161  2015-05-14 22:26  HIDTester\obj\x86\Release\HIDTester.csproj.FileListAbsolute.txt

     文件       1038  2015-05-14 21:47  HIDTester\obj\x86\Release\HIDTester.csproj.GenerateResource.Cache

     文件      12602  2015-05-14 22:08  HIDTester\obj\x86\Release\HIDTester.csprojResolveAssemblyReference.cache

     文件      23552  2015-05-14 22:22  HIDTester\obj\x86\Release\HIDTester.exe

     文件        180  2015-05-14 22:08  HIDTester\obj\x86\Release\HIDTester.FormMain.resources

     文件      10228  2015-05-13 14:00  HIDTester\obj\x86\Release\HIDTester.FrmMain.resources

     文件      42496  2015-05-14 22:22  HIDTester\obj\x86\Release\HIDTester.pdb

     文件        180  2015-05-14 22:08  HIDTester\obj\x86\Release\HIDTester.Properties.Resources.resources

............此处省略18个文件信息

评论

共有 条评论