S
schlam
So I think I have followed all the various instructions on the
microsoft instructions on here http://support.microsoft.com/kb/205277
how ever I still cannot seem to get this to work.
this is my test vb code
<code>
Private Declare Function crcget Lib "crclib.dll" (ByVal myx As Long,
FirstElement As Long) As Long
Private Sub Command1_Click()
Dim x As Long
Dim y(2) As Long
x = 3
y(0) = &H6
y(1) = &H1
y(2) = &H0
z = crcget(x, y(0))
q = Hex(Int(z))
Text3.Text = q
End Sub
</code>
using a simple click to call crcget and print the value on the screen
the c function prototype for this is
<code>
int _stdcall crcget(int num , int *data)
</code>
however despite that I am sending 3 values to my c function when in c
if I evaluate in c this statement
<code>
sizeof(data)/sizeof(*data)
</code>
the return value I get is 1 .. anyone seen this b4 .. can anyone
help ?
Thanks in advance
microsoft instructions on here http://support.microsoft.com/kb/205277
how ever I still cannot seem to get this to work.
this is my test vb code
<code>
Private Declare Function crcget Lib "crclib.dll" (ByVal myx As Long,
FirstElement As Long) As Long
Private Sub Command1_Click()
Dim x As Long
Dim y(2) As Long
x = 3
y(0) = &H6
y(1) = &H1
y(2) = &H0
z = crcget(x, y(0))
q = Hex(Int(z))
Text3.Text = q
End Sub
</code>
using a simple click to call crcget and print the value on the screen
the c function prototype for this is
<code>
int _stdcall crcget(int num , int *data)
</code>
however despite that I am sending 3 values to my c function when in c
if I evaluate in c this statement
<code>
sizeof(data)/sizeof(*data)
</code>
the return value I get is 1 .. anyone seen this b4 .. can anyone
help ?
Thanks in advance