C# to VB question

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

when you say

[DLLImport("user32")] extern static int EnumWindows(...) in c# how would you
convert extern to VB.NET?

I have this
<DLLImport("user32")> shared EnumWindows(...) as integer

what needs changed to get extern static int working in vb? thanks
 
Hi,

' VB.NET declaration
Public Delegate Function CallBack( _
ByVal hwnd As Integer, _
ByVal lParam As IntPtr) As Boolean

<DllImport("user32")> _
Private Shared Function enumWindows(ByVal lpEnumFunc As CallBack,
ByVal lParam As Integer) As Integer
' Do not place any code in here
End Function

Ken
-------------------------

Brian Henry said:
when you say

[DLLImport("user32")] extern static int EnumWindows(...) in c# how would
you
convert extern to VB.NET?

I have this
<DLLImport("user32")> shared EnumWindows(...) as integer

what needs changed to get extern static int working in vb? thanks
 
Back
Top