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

how to use ToUnicode() function?

Status
Not open for further replies.

mfm

Programmer
Jul 9, 2001
16
0
0
FR
Hi guys,
I am looking for any example source code on how to use one of the VB API function ToUnicode().
Example declaration:
Public Declare Function ToUnicode Lib "user32" Alias "ToUnicode" (ByVal wVirtKey As Long, ByVal wScanCode As Long, lpKeyState As Byte, ByVal pwszBuff As String, ByVal cchBuff As Long, ByVal wFlags As Long) As Long
I don't really sure what values to be assigned to each of the parameters. I have looked into the MSDN cds for the examples but I can't find any.
Any ideas? Really appreciate. Thx a lot
 
huh? I'm not converting a string though. I am trying to retrive the data like hex code from the keys on the keyboard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top