资源简介
Galil C#通讯链接范例 只是C#与Galil控制卡的链接,没有其他内容
代码片段和文件信息
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 Hello_Galil
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static Galil.Galil g;
private void Form1_Load(object sender EventArgs e)
{
try
{
g = new Galil.Galil();
label1.Text = g.libraryVersion() + “\r\n“;
g.address = ““;
label1.Text = label1.Text + g.connection() + “\r\n“;
label1.Text = label1.Text + “MG TIME “ + g.commandValue(“MG TIME“) + “\r\n“;
}//primary try
catch (System.Runtime.InteropServices.COMException ex)
{
label1.Text = label1.Text + ex.Message.Trim() + “\r\n“;
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 28160 2018-06-26 09:17 Hello_Galil\.vs\Hello_Galil\v15\.suo
....... 9 2010-01-04 15:54 Hello_Galil\Hello_Galil\bin\Debug\connect.last
....... 9728 2010-01-04 15:54 Hello_Galil\Hello_Galil\bin\Debug\Hello_Galil.exe
....... 30208 2010-01-04 15:54 Hello_Galil\Hello_Galil\bin\Debug\Hello_Galil.pdb
....... 11584 2010-01-04 15:54 Hello_Galil\Hello_Galil\bin\Debug\Hello_Galil.vshost.exe
....... 490 2009-09-17 23:00 Hello_Galil\Hello_Galil\bin\Debug\Hello_Galil.vshost.exe.manifest
....... 1007 2010-01-04 15:51 Hello_Galil\Hello_Galil\Form1.cs
....... 2023 2010-01-04 15:51 Hello_Galil\Hello_Galil\Form1.Designer.cs
....... 5817 2010-01-04 15:51 Hello_Galil\Hello_Galil\Form1.resx
....... 4052 2010-01-04 15:53 Hello_Galil\Hello_Galil\Hello_Galil.csproj
....... 143 2010-01-04 15:53 Hello_Galil\Hello_Galil\Hello_Galil.csproj.user
文件 42 2018-06-21 09:57 Hello_Galil\Hello_Galil\obj\x86\Debug\CoreCompileInputs.cache
文件 2870 2018-06-21 09:57 Hello_Galil\Hello_Galil\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7107 2018-06-21 09:57 Hello_Galil\Hello_Galil\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
....... 1066 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\GenerateResource.read.1.tlog
....... 1784 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\GenerateResource.write.1.tlog
....... 4092 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.csproj.FileListAbsolute.txt
....... 737 2010-01-04 15:48 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.csproj.ResolveComReference.cache
....... 9728 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.exe
....... 180 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.Form1.resources
....... 30208 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.pdb
....... 180 2010-01-04 15:54 Hello_Galil\Hello_Galil\obj\x86\Debug\Hello_Galil.Properties.Resources.resources
....... 11264 2010-01-04 15:48 Hello_Galil\Hello_Galil\obj\x86\Debug\Interop.Galil.dll
....... 503 2010-01-04 15:47 Hello_Galil\Hello_Galil\Program.cs
....... 1434 2010-01-04 15:47 Hello_Galil\Hello_Galil\Properties\AssemblyInfo.cs
....... 2848 2010-01-04 15:47 Hello_Galil\Hello_Galil\Properties\Resources.Designer.cs
....... 5612 2010-01-04 15:47 Hello_Galil\Hello_Galil\Properties\Resources.resx
....... 1094 2010-01-04 15:47 Hello_Galil\Hello_Galil\Properties\Settings.Designer.cs
....... 249 2010-01-04 15:47 Hello_Galil\Hello_Galil\Properties\Settings.settings
....... 879 2010-01-04 15:53 Hello_Galil\Hello_Galil.sln
............此处省略20个文件信息
- 上一篇:C#制作一个简易画图工具
- 下一篇:银行管理系统代码
评论
共有 条评论