G
Guest
I am having trouble accessing a .dll created in eVC through vb.net. The function for the .dll looks like the following in eVC
__declspec(dllexport
int WINAPI foo3 (int inval
return inval+10
Inside of my VB appliation, I have the following
Imports System.Runtime.InteropService
<DllImport("CProcess.DLL")>
Public Function foo3(ByVal foo As Integer) As Intege
End Functio
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clic
Dim retval As Intege
Dim inVal As Intege
retval = foo3(inVal
inVal = 1
retval = foo3(inVal
retval = foo4(inVal
End Su
End Clas
The first call to foo3 returns correctly (inVal = 0, retVal = 10). However, on the second call to foo3, the PDA reports "A native exception occurred. ExceptionCode: 0x80000002 ...". The PDA seems to be complaining about data not being aligned properly. Can anyone help me figure this one out? I've got plenty of VC++ experience, but am new to VB and the PDA world. Thanks.
__declspec(dllexport
int WINAPI foo3 (int inval
return inval+10
Inside of my VB appliation, I have the following
Imports System.Runtime.InteropService
<DllImport("CProcess.DLL")>
Public Function foo3(ByVal foo As Integer) As Intege
End Functio
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clic
Dim retval As Intege
Dim inVal As Intege
retval = foo3(inVal
inVal = 1
retval = foo3(inVal
retval = foo4(inVal
End Su
End Clas
The first call to foo3 returns correctly (inVal = 0, retVal = 10). However, on the second call to foo3, the PDA reports "A native exception occurred. ExceptionCode: 0x80000002 ...". The PDA seems to be complaining about data not being aligned properly. Can anyone help me figure this one out? I've got plenty of VC++ experience, but am new to VB and the PDA world. Thanks.