Name of computer

How can i get the name of a computer using a VB5 code
Thank You,
Birendra
kishor33Asked:
Who is Participating?
 
chabaudConnect With a Mentor Commented:
try the GetComputerName function:

private declare GetComputerName lib "kernel32.dll" (byval buf as string, byref nSize as long)

function GetName()
dim buf as string
buf=space(128)
GetComputerName buf, 128
GetName= trim(buf)
end function

0
 
a111a111a111Commented:
What is this one point?
Do you think this is a game?
Get your points to 50, 100, 200 and let the real work to be done.
Do you like to answer on Q and get one point yourself?

Rise "UP" the points first!
0
 
kishor33Author Commented:
Thanks for the answer it really works
0
 
chabaudCommented:
Thanks for you no point !

Just to encourage you. www.experts-exchange.com really works too !
0
All Courses

From novice to tech pro — start learning today.