Posts: 216
Name: Syed Saadat Ali
Location: Lahore, Pakistan
|
Hi,
I have problem to change a C++ program to Vb.net program. When I saw C++ declare
int checkbit(BOOL Slots1, BOOL Afif, unsigned char Afi, unsigned char Masklen, unsigned char *Mask, unsigned char *Nbblocks, unsigned char Blocklens[], unsigned char Blocks[][32], unsigned char *Cmdstatus)
I declare in VB.net will be
Declare Function checkbit Lib "abc.dll" (ByVal slots1 As Boolean, ByVal afif As Boolean, ByVal afi As Byte, ByVal masklen As Byte, ByRef mask As Byte, ByRef nbblocks As Byte, ByVal blocklens() As Byte, ByVal Blocks()() As Byte, ByRef cmdstatus As Byte) As Integer
Is it correct? I can build successful. But when I trying to deploy it, it return the ArgumentException error.
Where is my mistake? the array part?
|