Results 1 to 5 of 5

Thread: MAC adress

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    India
    Posts
    56

    Question MAC adress

    I wan to get the MAC address of the m/c on which my application

    is runninng... How do I do it?

    Nahush

  2. #2
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    http://vbnet.mvps.org/index.html?cod...macaddress.htm

    Haven't tested it, but it should work.
    Don't Rate my posts.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    India
    Posts
    56

    re

    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

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2004
    Location
    India
    Posts
    56

    result

    All the functions have to be made Private

    The code is fine

    Thanx a ton

    Nahush.

  5. #5
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    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.
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width