Imports System.Runtime.InteropServices
Public Class mySPC
<Runtime.InteropServices.DllImport("PPST_Keygen.dl l", EntryPoint:="GetSPC")> Public Shared Function GetSPC1(ByVal src As Double) As Long
' Leave function empty - DLLImport attribute forwards calls to GetSPC to
Private Sub btnGetSPC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetSPC.Click
txtSPC.Text = "FAILED"
txtSPC.Text = GetSPC1(5407309929)
End Sub
End Class
I have Created this Program and tried to Import the the Dll and run getSPC Function but Getting Error