Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get computer name?

Status
Not open for further replies.

JeremyS

Programmer
Feb 6, 2001
3
CA
In Visual C++, how would I go about finding the computer name the .exe is running on?

Thanx in advance!
 
Take a look at the Win32 API for NetWkstaGetInfo()

Hope this helps
-pete
 
How do print a UNICODE string using a MessageBox function?
My prb is that for Computername only one character is being printed...I cast it with LPCTSTR also it is not working...
HELP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top