已有56人关注
看看:关于C#调用外部DLL动态链接库的问题!
发表在C#图书答疑 2008-10-23
是否精华
版块置顶:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Timer = System.Timers.Timer;
using System.Runtime.InteropServices;
using NHTSS.ClientApp.RWIC;
using System.Text;

namespace NHTSS.ClientApp.RWIC.MDI
{
/// <summary>
/// FormIcManager 的摘要说明。
/// </summary>
public class FormIcManager : System.Windows.Forms.Form
{
[DllImport("dcrf32.dll")]
public static extern int dc_init(Int16 port,long baud);  //初试化
[DllImport("dcrf32.dll")]
public static extern int dc_exit(int icdev);
[DllImport("dcrf32.dll")]
public static extern int dc_reset(int icdev,uint sec);
[DllImport("dcrf32.dll")]
public static extern int dc_request(int icdev,char _Mode,ref uint TagType);
.....

         }

}
这是visual c# 的定义方法,用C#呢?要怎么改?
分享到:
精彩评论 1
小科_mrkj
学分:43 LV2
2008-10-24
沙发
读者朋友:
    您好,您写的代码中已经声明了那些方法啊,直接调用就行了。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照