Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



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

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
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?
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
 
Register now for full access!
Reply     « Reply to Convert C++ declaration to VB.net
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.16746 seconds with 12 queries