2008-04-24 16:19 C# & vb.net 引用DLL (無法加入參考時用)
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



