I wan to get the MAC address of the m/c on which my application
is runninng... How do I do it?
Nahush
Printable View
I wan to get the MAC address of the m/c on which my application
is runninng... How do I do it?
Nahush
http://vbnet.mvps.org/index.html?cod...macaddress.htm
Haven't tested it, but it should work.
the link provided above contains declarations such as
Public Const NCBASTAT As Long = &H33
Public Const NCBNAMSZ As Long = 16
Public Const HEAP_ZERO_MEMORY As Long = &H8
Public Const HEAP_GENERATE_EXCEPTIONS As Long = &H4
Public Const NCBRESET As Long = &H32
and a error is given for these as
"Constants, fixed-length strings, arrays, user-defined types, and Declare statements not allowed as Public members of an object module"
Nahush
All the functions have to be made Private
The code is fine
Thanx a ton
Nahush.
Code thats declared as a public can be put into a module, but if you only have one form, just set them all to private. :)