Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: convert visual basic 6.0 to visual basic 2010 Pin
Peter Leow18-Jan-14 19:11
professionalPeter Leow18-Jan-14 19:11 
GeneralRe: convert visual basic 6.0 to visual basic 2010 Pin
kikyamelia18-Jan-14 20:21
kikyamelia18-Jan-14 20:21 
GeneralRe: convert visual basic 6.0 to visual basic 2010 Pin
Peter Leow18-Jan-14 20:36
professionalPeter Leow18-Jan-14 20:36 
AnswerRe: convert visual basic 6.0 to visual basic 2010 Pin
Eldar Zeynalov24-Jan-14 19:03
Eldar Zeynalov24-Jan-14 19:03 
AnswerRe: convert visual basic 6.0 to visual basic 2010 Pin
TheComputerMan31-Jan-14 5:07
TheComputerMan31-Jan-14 5:07 
QuestionSub reports Pin
Tsunamipudip17-Jan-14 2:10
Tsunamipudip17-Jan-14 2:10 
QuestionDelegates & Pointers Pin
Synth_Boy16-Jan-14 2:14
Synth_Boy16-Jan-14 2:14 
AnswerRe: Delegates & Pointers Pin
Paulo Zemek16-Jan-14 3:17
mvaPaulo Zemek16-Jan-14 3:17 
Why are you creating a delegate?

If the C++ code (I believe it is exported as C code, or else it will have a mangled name) is receiving the parameters like you are showing, then you should write the dll import of RFID_Comms receiving the parameters as you did to the delegate.

Ŧhat is, something like:

VB
<DllImport("myCom.dll", CharSet:=CharSet.Unicode)> Public Function RFID_Comms(ByVal sTx As IntPtr, ByVal sRx As IntPtr, ByVal sRxSize As UShort, ByVal timeout As UShort) As Integer



In fact I am not pretty sure if VB.NET uses a different way of doing it, but in C# it will be pretty similar to this code that I just presented, but it will be declared as extern and static too.
GeneralRe: Delegates & Pointers Pin
Synth_Boy16-Jan-14 4:20
Synth_Boy16-Jan-14 4:20 
AnswerRe: Delegates & Pointers Pin
Dave Kreskowiak16-Jan-14 3:31
mveDave Kreskowiak16-Jan-14 3:31 
GeneralRe: Delegates & Pointers Pin
Synth_Boy16-Jan-14 4:24
Synth_Boy16-Jan-14 4:24 
GeneralRe: Delegates & Pointers Pin
Ron Beyer16-Jan-14 4:50
professionalRon Beyer16-Jan-14 4:50 
GeneralRe: Delegates & Pointers Pin
Synth_Boy16-Jan-14 5:15
Synth_Boy16-Jan-14 5:15 
GeneralRe: Delegates & Pointers Pin
Ron Beyer16-Jan-14 5:17
professionalRon Beyer16-Jan-14 5:17 
GeneralRe: Delegates & Pointers Pin
Synth_Boy16-Jan-14 6:03
Synth_Boy16-Jan-14 6:03 
AnswerRe: Delegates & Pointers Pin
Synth_Boy30-Jan-14 22:02
Synth_Boy30-Jan-14 22:02 
QuestionVb script Pin
Member 1052588115-Jan-14 4:25
Member 1052588115-Jan-14 4:25 
AnswerRe: Vb script Pin
Dave Kreskowiak15-Jan-14 4:38
mveDave Kreskowiak15-Jan-14 4:38 
AnswerRe: Vb script Pin
Ron Beyer15-Jan-14 5:00
professionalRon Beyer15-Jan-14 5:00 
Questionexe file Pin
Member 1052323315-Jan-14 2:23
Member 1052323315-Jan-14 2:23 
AnswerRe: exe file Pin
thatraja15-Jan-14 2:31
professionalthatraja15-Jan-14 2:31 
Questionvb 6.0 birthday reminder form code Pin
akcworld14-Jan-14 18:00
akcworld14-Jan-14 18:00 
AnswerRe: vb 6.0 birthday reminder form code Pin
Dave Kreskowiak14-Jan-14 18:13
mveDave Kreskowiak14-Jan-14 18:13 
Generalvisual basic 2010 homework Pin
Member 1052356014-Jan-14 5:10
Member 1052356014-Jan-14 5:10 
GeneralRe: visual basic 2010 homework Pin
Ron Beyer14-Jan-14 5:15
professionalRon Beyer14-Jan-14 5:15 

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.