Click here to Skip to main content
15,886,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCrashes with soft reset Pin
utservoalius25-Nov-05 9:45
utservoalius25-Nov-05 9:45 
QuestionI need some hints about sqlcommand Pin
y_mmohd25-Nov-05 1:19
y_mmohd25-Nov-05 1:19 
AnswerRe: I need some hints about sqlcommand Pin
dptalt25-Nov-05 2:12
dptalt25-Nov-05 2:12 
GeneralRe: I need some hints about sqlcommand Pin
y_mmohd25-Nov-05 4:08
y_mmohd25-Nov-05 4:08 
GeneralRe: I need some hints about sqlcommand Pin
Colin Angus Mackay25-Nov-05 4:27
Colin Angus Mackay25-Nov-05 4:27 
AnswerRe: I need some hints about sqlcommand Pin
y_mmohd25-Nov-05 20:18
y_mmohd25-Nov-05 20:18 
QuestionHow to play voice recorded as byte format? Pin
WhineyGrace24-Nov-05 20:38
WhineyGrace24-Nov-05 20:38 
QuestionMAC address retrieval Pin
abhinish24-Nov-05 18:54
abhinish24-Nov-05 18:54 
Hi guys!
need some help from u guys..

i m developing an application which retrieves MAC address from the provided IP addresses on LAN i tried using

SendARP class in which DAVE KRESKOWIAK Help me a lot
the code i used is

<dllimport("iphlpapi.dll")> _
Private Shared Function SendARP(ByVal DestIP As Integer, ByVal SrcIP As Integer, <out()> ByVal pMacAddr() As Byte, ByRef PhyAddrLen As Integer) As Integer

End Function


Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
Try
Dim addr As IPAddress = IPAddress.Parse(TextBox5.Text)
Dim mac(6) As Byte
Dim len As Integer = mac.Length
SendARP(CInt(addr.Address), 0, mac, len)
Dim macAddress As String = BitConverter.ToString(mac, 0, len)
' MsgBox(macAddress)
If macAddress = "" Then
MsgBox("enter proper IPAddress")
Return
End If
TextBox6.Text = macAddress

Catch ex As System.FormatException
MsgBox("Enter an Valid IP Address...", MsgBoxStyle.Critical)
Catch ex As System.ArithmeticException
MsgBox("Cannot extract MAC address of the given IP Address as it is not a Windows OS.. ", MsgBoxStyle.Critical)

End Try

end sub



But the problem is that it only retrieves the MAC address of Windows Operating System Not any other OS like Linux Solorois. Some of our system are these only
it throghs an Arithmetic over Flow Exception.
can any one help me out in retreiving the other OS MAC address.







abhinav
AnswerRe: MAC address retrieval Pin
Briga24-Nov-05 22:15
Briga24-Nov-05 22:15 
AnswerRe: MAC address retrieval Pin
Dave Kreskowiak25-Nov-05 6:36
mveDave Kreskowiak25-Nov-05 6:36 
GeneralRe: MAC address retrieval Pin
abhinish25-Nov-05 18:32
abhinish25-Nov-05 18:32 
GeneralRe: MAC address retrieval Pin
Dave Kreskowiak27-Nov-05 15:24
mveDave Kreskowiak27-Nov-05 15:24 
GeneralRe: MAC address retrieval Pin
abhinish28-Nov-05 18:49
abhinish28-Nov-05 18:49 
AnswerRe: MAC address retrieval Pin
GregRH16-Dec-05 13:01
GregRH16-Dec-05 13:01 
GeneralRe: MAC address retrieval Pin
abhinish16-Dec-05 18:06
abhinish16-Dec-05 18:06 
QuestionHand Cursor in .NET Pin
marclile24-Nov-05 17:26
marclile24-Nov-05 17:26 
AnswerRe: Hand Cursor in .NET Pin
Christian Graus24-Nov-05 17:53
protectorChristian Graus24-Nov-05 17:53 
AnswerRe: Hand Cursor in .NET Pin
progload25-Nov-05 14:11
progload25-Nov-05 14:11 
Questionregister accessing from VB6 Pin
vani_bel24-Nov-05 17:01
vani_bel24-Nov-05 17:01 
AnswerRe: register accessing from VB6 Pin
Dave Kreskowiak25-Nov-05 4:16
mveDave Kreskowiak25-Nov-05 4:16 
QuestionForce Panel to scroll Pin
spelltwister24-Nov-05 15:44
spelltwister24-Nov-05 15:44 
QuestionCoding web camera Pin
Amr M. K.24-Nov-05 6:43
Amr M. K.24-Nov-05 6:43 
AnswerRe: Coding web camera Pin
Briga24-Nov-05 7:17
Briga24-Nov-05 7:17 
QuestionEnforcing Referrential Integrity in VB.NET Pin
R. A. Abbasi24-Nov-05 4:56
R. A. Abbasi24-Nov-05 4:56 
AnswerRe: Enforcing Referrential Integrity in VB.NET Pin
Steve Pullan24-Nov-05 18:31
Steve Pullan24-Nov-05 18:31 

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.