Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: App.Path (vb.net) Pin
Just Greeky Creek9-Feb-05 0:16
Just Greeky Creek9-Feb-05 0:16 
GeneralRe: App.Path (vb.net) Pin
Ritesh12349-Feb-05 0:23
Ritesh12349-Feb-05 0:23 
GeneralCustom Shaped Window (form) Pin
Member 86210338-Feb-05 22:49
Member 86210338-Feb-05 22:49 
GeneralRe: Custom Shaped Window (form) Pin
Just Greeky Creek9-Feb-05 0:18
Just Greeky Creek9-Feb-05 0:18 
GeneralRe: Custom Shaped Window (form) Pin
Kumar saurabh9-Feb-05 20:16
Kumar saurabh9-Feb-05 20:16 
GeneralRe: Custom Shaped Window (form) Pin
Just Greeky Creek9-Feb-05 20:44
Just Greeky Creek9-Feb-05 20:44 
QuestionCan someone help with this one Pin
Delo8-Feb-05 19:58
Delo8-Feb-05 19:58 
AnswerRe: Can someone help with this one Pin
Dave Kreskowiak9-Feb-05 2:36
mveDave Kreskowiak9-Feb-05 2:36 
Patience! We don't support 3rd party libraries here!

Try changing all your DECLARE statements that are returning Short's to Integer's. The return values coming from the functions in the C++ code are all returning DWORD's, or 32-bit unsigned integers. A Short in VB.NET is a 16-bit signed number, so your losing half of the data that makes up the return values from these functions:
Private Declare Function getAdapterNames Lib "rvpacket.dll" (ByVal s As String) As Integer
Private Declare Function openAdapter Lib "rvpacket.dll" (ByVal Adapter As String) As Integer
Private Declare Function checkPacketQueue Lib "rvpacket.dll" (ByVal Adapter As String) As Integer
Private Declare Function getQueuedPacket Lib "rvpacket.dll" (ByVal s As String) As Integer
Private Declare Sub closeAdapter Lib "rvpacket.dll" (ByVal Adapter As String)

Do the same for your constants:
Private Const SIMULTANEOUS_READS As Integer = 10
Private Const MAX_ADAPTER_LEN As Integer= 512
Private Const ADAPTER_DELIMITER As Integer= "|"
Private Const MAX_PACKET_SIZE As Integer= 10000
Private Const ERR_SUCCESS As Integer= 1
Private Const ERR_ADAPTER_ID As Integer= 2
Private Const ERR_INVALID_HANDLE As Integer= 3
Private Const ERR_INVALID_ADAPTER As Integer= 4
Private Const ERR_ALLOCATE_PACKET As Integer= 5

Then move these two sections to the top of the Class definition. The rest of the code LOOKS right, but I'm in no position to start putting together programs to test this library. Try checking to see what Adapter holds when you make that call to PacketQueue = checkPacketQueue(Adapter). Make sure it's not blank.




RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionHow To Search in Database in Access Using Adodc Pin
Max's8-Feb-05 19:56
sussMax's8-Feb-05 19:56 
Generalget_URL Pin
students552 university8-Feb-05 19:44
students552 university8-Feb-05 19:44 
QuestionHow can I corrupt a folder or restrict the access to it? (VB 6) Pin
AngryC8-Feb-05 17:55
AngryC8-Feb-05 17:55 
AnswerRe: How can I corrupt a folder or restrict the access to it? (VB 6) Pin
Christian Graus9-Feb-05 10:05
protectorChristian Graus9-Feb-05 10:05 
AnswerRe: How can I corrupt a folder or restrict the access to it? (VB 6) Pin
Dave Kreskowiak9-Feb-05 10:14
mveDave Kreskowiak9-Feb-05 10:14 
QuestionHow can I change the file/folder index? (VB 6) Pin
AngryC8-Feb-05 17:54
AngryC8-Feb-05 17:54 
AnswerRe: How can I change the file/folder index? (VB 6) Pin
Dave Kreskowiak9-Feb-05 16:43
mveDave Kreskowiak9-Feb-05 16:43 
QuestionHow can I hide the size of a hidden folder? (VB 6) Pin
AngryC8-Feb-05 17:53
AngryC8-Feb-05 17:53 
AnswerRe: How can I hide the size of a hidden folder? (VB 6) Pin
Dave Kreskowiak9-Feb-05 16:46
mveDave Kreskowiak9-Feb-05 16:46 
QuestionHow can I encrypt a folder? (VB 6) Pin
AngryC8-Feb-05 17:52
AngryC8-Feb-05 17:52 
AnswerRe: How can I encrypt a folder? (VB 6) Pin
Dave Kreskowiak9-Feb-05 16:47
mveDave Kreskowiak9-Feb-05 16:47 
Questionhow to accesses linux registry using vb.net Pin
friendsyaadein8-Feb-05 17:28
friendsyaadein8-Feb-05 17:28 
AnswerRe: how to accesses linux registry using vb.net Pin
Dave Kreskowiak9-Feb-05 16:41
mveDave Kreskowiak9-Feb-05 16:41 
GeneralCryptography Pin
nitin_ion8-Feb-05 16:28
nitin_ion8-Feb-05 16:28 
GeneralRe: Cryptography Pin
Dave Kreskowiak9-Feb-05 16:39
mveDave Kreskowiak9-Feb-05 16:39 
GeneralProblem in Sql Command Pin
sriwirko8-Feb-05 15:58
sriwirko8-Feb-05 15:58 
GeneralRe: Problem in Sql Command Pin
Member 13063378-Feb-05 17:25
Member 13063378-Feb-05 17:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.