c#并口操作 INPOUT32.DLL

上传者: johnchenping | 上传时间: 2020-12-03 12:08:54 | 文件大小: 499KB | 文件类型: RAR
c#对并口的读写操作! INPOUT32.DLL 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.Runtime.InteropServices; namespace IED_Application { public partial class IED : Form { //int led=0x278; [DllImport("inpout32.dll", EntryPoint = "Out32")] public static extern void Output(int adress, int value); [DllImport("user32.dll", EntryPoint = "MessageBoxA")] public static extern void MsgBox(int hWnd, string msg, string caption, int type); public IED() { InitializeComponent(); } private void IED_Load(object sender, EventArgs e) { } private void output_Click(object sender, EventArgs e) { MsgBox(0, "这里是用DllImport", "tiaozhanbei", 0x30); IED.Output(888, 253); } } }

文件下载

资源详情

[{"title":"( 42 个子文件 499KB ) c#并口操作 INPOUT32.DLL","children":[{"title":"C#并口操作","children":[{"title":"page3.jpg <span style='color:#111;'> 50.11KB </span>","children":null,"spread":false},{"title":"page2.jpg <span style='color:#111;'> 47.97KB </span>","children":null,"spread":false},{"title":"INPOUT32.DLL_PChome下载介绍.txt <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"IED Application","children":[{"title":"IED Application.sln <span style='color:#111;'> 935B </span>","children":null,"spread":false},{"title":"IED Application.suo <span style='color:#111;'> 22.50KB </span>","children":null,"spread":false},{"title":"IED Application","children":[{"title":"IED Application.csproj <span style='color:#111;'> 5.34KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"IED Application.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"IED Application.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"IED Application.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"IED Application.exe <span style='color:#111;'> 72.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"IED Application.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"IED Application.exe <span style='color:#111;'> 72.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"IED.cs <span style='color:#111;'> 1009B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"IED Application.csproj.GenerateResource.Cache <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"IED_Application.IED.resources <span style='color:#111;'> 31.86KB </span>","children":null,"spread":false},{"title":"IED Application.pdb <span style='color:#111;'> 29.50KB </span>","children":null,"spread":false},{"title":"IED Application.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"IED Application.exe <span style='color:#111;'> 72.00KB </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"IED_Application.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"Release","children":[{"title":"IED Application.csproj.GenerateResource.Cache <span style='color:#111;'> 845B </span>","children":null,"spread":false},{"title":"IED_Application.IED.resources <span style='color:#111;'> 31.86KB </span>","children":null,"spread":false},{"title":"IED Application.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"IED Application.exe <span style='color:#111;'> 72.00KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"IED_Application.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"IED Application.csproj.user <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"inpout32.dll <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"IED.resx <span style='color:#111;'> 52.93KB </span>","children":null,"spread":false},{"title":"IED.Designer.cs <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"INPOUT32.DLL <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"Install.ico <span style='color:#111;'> 31.30KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Thumbs.db <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false},{"title":"page1.jpg <span style='color:#111;'> 50.58KB </span>","children":null,"spread":false},{"title":"dll_pic.jpg <span style='color:#111;'> 39.23KB </span>","children":null,"spread":false},{"title":"INPOUT32.rar <span style='color:#111;'> 52.27KB </span>","children":null,"spread":false},{"title":"INPOUT32.DLL <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"INPOUT32源文件.rar <span style='color:#111;'> 54.36KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • feng275779704 :
    可以使用, 没有问题。
    2018-03-23
  • 核爆可可 :
    有没有例子啊
    2017-09-12
  • bxl133 :
    没问题,不错。
    2017-06-22
  • yb2080 :
    非常好的东西,作打印必不可少的东西!
    2016-11-27
  • ywapy :
    很方便的打印程序
    2016-03-23

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明