vb.net 调用动态库dll

前端之家收集整理的这篇文章主要介绍了vb.net 调用动态库dll前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
'声明部分
   Public Declare Function Encode Lib ".\LDPC_DEC_DLL.dll" _
          (ByRef s As Byte,ByRef c As Byte) As Byte

    Public Declare Function Add_Noise Lib ".\LDPC_DEC_DLL.dll" _
    (ByRef x As Byte,ByRef y As Byte,ByVal snr As Double) As Byte

    Public Declare Function LDPC_Dec_Init Lib ".\LDPC_DEC_DLL.dll" () _
    As Integer
    Public Declare Function LDPC_Dec Lib ".\LDPC_DEC_DLL.dll" _
    (ByRef y As Byte,ByRef y_d As Byte) As Byte
'使用部分
   Dim flag As Boolean
 flag = LDPC_Dec(FrameCOntent(0),Dec(0))

猜你在找的VB相关文章