asp.net引用vb写的dll?
把相关的dll文件放到bin目录下,修改dll属性为嵌入的资源
using System.Runtime.InteropServices;
[DllImport("FOX_DC.dll", EntryPoint = "DC_Mif_Read")]
public static extern int DC_Mif_Read(byte baddr,string bdata);
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
int intFlag = DC_Mif_Read(0x50, "9");
Response.Write(intFlag);
}
}
参考http://www.cnblogs.com/kissknife/archive/2006/11/04/549990.html