I have a VB application that creates a structure.
I have a PBDLL 6 DLL that I created that uses the same structure.
When I pass the structure from VB to the DLL, the values
in the structure are wrong.
The structure looks like this.
Type typGeneralTimeBased_Record1
strWellid As String * 16
intStknum As Integer
intRecid As Integer
lngSeqid As Long
lngDate As Long
lngTime As Long
intActcod As Integer
sngDeptbitm As Single
sngDeptbitv As Single
sngDeptmeas As Single
sngDeptvert As Single
End Type
I copied this into the PBDLL and when run gives the wrong answers.
I looked through the docs and PBDLL says to use DWORD when
defining structures. I did that and the answers are still wrong
but not the same as before.
If you will email me I will send you both the
VB app and the PBDLL app to show you.
Thanks
Ben Clark
[email protected]
------------------
I have a PBDLL 6 DLL that I created that uses the same structure.
When I pass the structure from VB to the DLL, the values
in the structure are wrong.
The structure looks like this.
Type typGeneralTimeBased_Record1
strWellid As String * 16
intStknum As Integer
intRecid As Integer
lngSeqid As Long
lngDate As Long
lngTime As Long
intActcod As Integer
sngDeptbitm As Single
sngDeptbitv As Single
sngDeptmeas As Single
sngDeptvert As Single
End Type
I copied this into the PBDLL and when run gives the wrong answers.
I looked through the docs and PBDLL says to use DWORD when
defining structures. I did that and the answers are still wrong
but not the same as before.
If you will email me I will send you both the
VB app and the PBDLL app to show you.
Thanks
Ben Clark
[email protected]
------------------
Comment