在可视化Web开发人员中使用外部DLL来控制com1 [英] use a external dll in visual web developer to control com1

查看:47
本文介绍了在可视化Web开发人员中使用外部DLL来控制com1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual C#2008中有这个dll!

使用System;
使用System.collection.generic;
使用System.linq;
使用System。 text;
使用System.io.port;
使用System.threading;

命名空间compuerto
{
   公共类class1
     {  static serialport rs232
          public class1()
             {rs232 = new serialport();
                rs232.portname =" COM1"                rs232.baudrate = 57600;
                rs232.databit = 8;
                rs232.writetimeout = 500;
                rs232.open();
}
}左右,我需要在我的网页中使用这个dll,这是我在Visual Web developer 2008中制作的!,  ;我有 在  PC  visual C#2008,  web developer 2008和  i。7。我不知道如何使用这个dll并获得许可,请知道如何知道如何???????? /⑥

i have this dll in visual C# 2008!

using System;
using System.collection.generic;
using System.linq;
using System.text;
using System.io.port;
using System.threading;

namespace compuerto
{
    public class class1
     {  static serialport rs232
          public class1()
             { rs232 = new serialport();
                rs232.portname = "COM1"
                rs232.baudrate = 57600;
                rs232.databit =8;
                rs232.writetimeout = 500;
                rs232.open();
}
}
}

and i need use this dll in my web page that i made in visual web developer 2008!,  i have  in  pc  visual C# 2008,  web developer 2008 and  iis 7.

i don't know how to use this dll and get a permission, please somebody the know how to????????














推荐答案

您可以使用 "Add Reference"将dll添加到您的项目中。您可以使用以下步骤

1.在解决方案资源管理器中,右键单击项目节点,然后单击添加引用。
2.在"添加引用"对话框中,选择指示类型的选项卡要引用的组件。
3.选择要引用的组件,然后单击"确定"。

You can add dll to your project using  "Add Reference". You can use following steps

1.In Solution Explorer, right-click on the project node and click Add Reference.
2.In the Add Reference dialog box, select the tab indicating the type of component you want to reference.
3.Select the components you want to reference, then click OK.


这篇关于在可视化Web开发人员中使用外部DLL来控制com1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆