Click here to Skip to main content
15,916,846 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB.Net code conversion Pin
Christian Graus31-Oct-05 11:21
protectorChristian Graus31-Oct-05 11:21 
GeneralRe: VB.Net code conversion Pin
Dave Doknjas31-Oct-05 13:15
Dave Doknjas31-Oct-05 13:15 
GeneralRe: VB.Net code conversion Pin
Joshua Quick31-Oct-05 13:58
Joshua Quick31-Oct-05 13:58 
GeneralRe: VB.Net code conversion Pin
Dave Doknjas31-Oct-05 14:18
Dave Doknjas31-Oct-05 14:18 
GeneralRe: VB.Net code conversion Pin
GambleJ1-Nov-05 1:05
GambleJ1-Nov-05 1:05 
Questionstarting a process Pin
Johneyb31-Oct-05 7:03
Johneyb31-Oct-05 7:03 
QuestionWindows service class code won't run.... Pin
Brent Lamborn31-Oct-05 6:14
Brent Lamborn31-Oct-05 6:14 
QuestionHow to declare an "any" argument in VB.NET? Pin
rand1931-Oct-05 6:03
rand1931-Oct-05 6:03 
I need to interface with a dll from VB.NET. I have example code of calling a function in that DLL in VBA it is as follows:

Private Declare Function BuildKeyboardList Lib "keyman32" (ByRef pKbdInfo As Any, ByRef pCount As Long) As Long<br />
Private Sub MySub()<br />
   Dim xxx As Long = 0<br />
   If BuildKeyboardList(ByVal xxx, nLayouts) = 0 Then Exit Sub<br />
   ...<br />
    ReDim KeybdInfo(nLayouts)<br />
    If BuildKeyboardList(KeybdInfo(1), nLayouts) = 0 Then Exit Sub<br />
   ...<br />
End Sub


How do I Declare This Function in VB.NET with an "Any" argument, that sometimes will be a long and other times will be a structure?
How do I Call this function sometimes ByVal and other times ByRef in VB.NET?


Rand
AnswerRe: How to declare an &amp;amp;quot;any&amp;amp;quot; argument in VB.NET? Pin
Richard_Wolf31-Oct-05 13:29
Richard_Wolf31-Oct-05 13:29 
QuestionForm with the last raws empty Pin
Ionas_Had31-Oct-05 4:58
Ionas_Had31-Oct-05 4:58 
QuestionUploading files to a remote server Pin
Qariuki30-Oct-05 23:40
Qariuki30-Oct-05 23:40 
QuestionSSH connection Pin
Spaz8030-Oct-05 20:59
Spaz8030-Oct-05 20:59 
QuestionADODC control and SQL query Pin
jenagan30-Oct-05 17:59
jenagan30-Oct-05 17:59 
AnswerRe: ADODC control and SQL query Pin
MalikRizwan31-Oct-05 21:10
MalikRizwan31-Oct-05 21:10 
QuestionPrinting a Form in VB.net Like Access 2000 Pin
Rich Locus30-Oct-05 15:24
Rich Locus30-Oct-05 15:24 
AnswerRe: Printing a Form in VB.net Like Access 2000 Pin
Rich Locus30-Oct-05 15:42
Rich Locus30-Oct-05 15:42 
AnswerRe: Printing a Form in VB.net Like Access 2000 Pin
Christian Graus30-Oct-05 16:01
protectorChristian Graus30-Oct-05 16:01 
QuestionInvalidate and Flicker Pin
rwestgraham30-Oct-05 13:51
rwestgraham30-Oct-05 13:51 
AnswerRe: Invalidate and Flicker Pin
Christian Graus30-Oct-05 14:39
protectorChristian Graus30-Oct-05 14:39 
GeneralRe: Invalidate and Flicker Pin
rwestgraham30-Oct-05 16:22
rwestgraham30-Oct-05 16:22 
QuestionRead From Text File Pin
kenexcelon30-Oct-05 11:23
kenexcelon30-Oct-05 11:23 
AnswerRe: Read From Text File Pin
kenexcelon30-Oct-05 11:27
kenexcelon30-Oct-05 11:27 
AnswerRe: Read From Text File Pin
Steve Pullan30-Oct-05 12:30
Steve Pullan30-Oct-05 12:30 
GeneralRe: Read From Text File Pin
kenexcelon31-Oct-05 4:14
kenexcelon31-Oct-05 4:14 
GeneralRe: Read From Text File Pin
Steve Pullan31-Oct-05 13:37
Steve Pullan31-Oct-05 13:37 

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.