摘要: 最近需要写一个和给上位机和下位机通讯的接口,而上位机是用Delphi开发的,所以就需要用C#做一类库给Delphi调用大概步骤:1、首先在VS2008中新建一个类项目名为TestDelphi,然后添加一个接口文件命名为ITest.cs源代码如下:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace TestDelphi{ public interface ITest { int add(... 阅读全文
posted @ 2012-08-10 14:44 liaoyi 阅读(9220) 评论(0) 推荐(0) 编辑