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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unsigned short to string?

Status
Not open for further replies.

nhoellei

Programmer
Feb 1, 2002
13
US
I am using a small program that uses NetWkstaUserEnum and the return type is a struct LPWKSTA_USER_INFO_1.

Anyway, the question I have is when I display the wkui1_username value( which is one of the vaules within LPWKSTA_USER_INFO_1) I get the following: 00137C60 00350036.

When I step through the program it turns out that LPWKSTA_USER_INFO_1 is an unsigned short*. I'm new pretty new to C++, what would be the process to display these values as text?
 
yes, it is UNICODE character. The type is wchar_t what in many cases is the same with unsigned short, not char. No wchar_t is a separate type, but with same size and behavior as unsigned short.

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top