Reply
Convert C++ declaration to VB.net
Old 01-26-2007, 02:36 AM Convert C++ declaration to VB.net
saadatshah's Avatar
Extreme Talker

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?
__________________
Traffic School - Driver Ed - Defensive Driving - Texas Defensive Driving - Online Traffic School - Defensive Driving Course
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
When You Register, These Ads Go Away!
     
Reply     « Reply to Convert C++ declaration to VB.net
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10329 seconds with 13 queries