C#

先  using System.Runtime.InteropServices;

然後

[DllImport("ABC.dll", EntryPoint = "Send")]
public static extern boolABCSend(string );

=====================================

VB.NET

 

先  Imports System.Runtime.InteropServices

然後

<DllImport("ABC.dll", EntryPoint = "Send")> public Shared Function  ABCSend(Byval  Msg As String) as bool

End Function

文章標籤
全站熱搜
創作者介紹
創作者 11 的頭像
11

冠霖的部落格

11 發表在 痞客邦 留言(0) 人氣(341)