• 大小: 5.27MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-09-18
  • 语言: 其他
  • 标签: C#  JS  

资源简介

汉王签字板:型号ESP370U。驱动及接口开发DEMO,不需要解压密码!

资源截图

代码片段和文件信息

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;


namespace HWPenSignDemoT
{
    public partial class Form1 : Form
    {
        //inform message definition
        static int complete_msg = 0x7ffe;
        static int cancel_msg = 0x7ffd;

        //return value of interface function
        static int HW_eOk = 0;      //success
        static int HW_eDeviceNotFound = -1;     //no device
        static int HW_eFailedLoadModule = -2;   //failed to load module
        static int HW_eFailedInitModule = -3;   //failed to inti module 
        static int HW_eWrongImageFormat = -4;   //do not support this image format
        static int HW_eNoSignData = -5;         //no sign data
        static int HW_eInvalidInput = -6;       //invalid input parameter


        public Form1()
        {
            InitializeComponent();
            axHWPenSign1.HWSetBkColor(0xE0F8E0);
            axHWPenSign1.HWSetCtlframe(2 0x000000);
            axHWPenSign1.HWSetFilePath(“c:\\hwsign.png“);
            axHWPenSign1.HWSetExtWndHandle(this.Handle.ToInt32());
        }

        private void button1_Click(object sender EventArgs e)      //open device
        {
           int res = axHWPenSign1.HWInitialize();
           if(res != HW_eOk)
           {
               MessageBox.Show(“Failed to open device“);
           }
        }

        private void button2_Click(object sender EventArgs e)      //close device
        {
            axHWPenSign1.HWFinalize();
        }

        private void button3_Click(object sender EventArgs e)      //clear sign
        {
            axHWPenSign1.HWClearPenSign();
        }

        private void button4_Click(object sender EventArgs e)      //save image
        {
            axHWPenSign1.HWSaveFile();
        }


        protected override void WndProc(ref Message m)
        {
            if (m.Msg == complete_msg)
                MessageBox.Show(“Confirm Sign“);
            else if (m.Msg == cancel_msg)
                MessageBox.Show(“Clear Sign“);
            
            base.WndProc(ref m);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      162816  2014-07-31 11:43  汉王签批控件接口说明文档 v2.2.doc
     目录           0  2014-11-02 12:03  HWPenSignDemoT\
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\bin\
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\
     文件        7680  2014-11-02 11:18  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\AxInterop.HWPenSignLib.dll
     文件       10752  2014-11-02 11:56  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\HWPenSignDemoT.exe
     文件       26112  2014-11-02 11:56  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\HWPenSignDemoT.pdb
     文件       14328  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\HWPenSignDemoT.vshost.exe
     文件         490  2007-07-21 01:33  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\HWPenSignDemoT.vshost.exe.manifest
     文件        8704  2014-11-02 11:18  HWPenSignDemoT\HWPenSignDemoT\bin\Debug\Interop.HWPenSignLib.dll
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\bin\Release\
     文件        7680  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\bin\Release\AxInterop.HWPenSignLib.dll
     文件       10240  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\bin\Release\HWPenSignDemoT.exe
     文件       22016  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\bin\Release\HWPenSignDemoT.pdb
     文件       14328  2015-01-16 14:45  HWPenSignDemoT\HWPenSignDemoT\bin\Release\HWPenSignDemoT.vshost.exe
     文件         490  2009-06-11 05:14  HWPenSignDemoT\HWPenSignDemoT\bin\Release\HWPenSignDemoT.vshost.exe.manifest
     文件        8704  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\bin\Release\Interop.HWPenSignLib.dll
     文件        2277  2014-11-02 11:51  HWPenSignDemoT\HWPenSignDemoT\Form1.cs
     文件        4899  2014-11-02 11:24  HWPenSignDemoT\HWPenSignDemoT\Form1.Designer.cs
     文件        6279  2014-11-02 11:24  HWPenSignDemoT\HWPenSignDemoT\Form1.resx
     文件        4689  2014-11-02 11:25  HWPenSignDemoT\HWPenSignDemoT\HWPenSignDemoT.csproj
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\obj\
     目录           0  2014-11-02 12:03  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\
     文件        7680  2014-11-02 11:18  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\AxInterop.HWPenSignLib.dll
     文件        1525  2014-11-02 11:57  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.csproj.FileListAbsolute.txt
     文件         847  2014-11-02 11:25  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.csproj.GenerateResource.Cache
     文件         550  2014-11-02 11:18  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.csproj.ResolveComReference.cache
     文件       10752  2014-11-02 11:56  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.exe
     文件         573  2014-11-02 11:25  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.Form1.resources
     文件       26112  2014-11-02 11:56  HWPenSignDemoT\HWPenSignDemoT\obj\Debug\HWPenSignDemoT.pdb
............此处省略54个文件信息

评论

共有 条评论