VB.NetでDllImport(Cdecl)
VB.Netで、自作DLL(ネイティブC)のAPIを使用する方法。
<DllImport("MyDLL.DLL", SetLastError:=True, CharSet:=CharSet.Auto, CallingConvention:=CallingConvention.Cdecl)> _ Public Shared Function _ MyApi(ByVal src As String, ByVal dst As String) As Boolean End Function
※stdcallで作成されている場合は、DllImportではなくDeclareステートメントでも問題ないです。