Solved

Name of computer

Posted on 1998-12-14
4
140 Views
Last Modified: 2010-05-03
How can i get the name of a computer using a VB5 code
Thank You,
Birendra
0
Comment
Question by:kishor33
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
chabaud earned 0 total points
ID: 1449960
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
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1449961
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
 

Author Comment

by:kishor33
ID: 1449962
Thanks for the answer it really works
0
 
LVL 4

Expert Comment

by:chabaud
ID: 1449963
Thanks for you no point !

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question