Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameW" (ByVal lpBuffer As String, nSize) As Long As Long
Private Sub Command2_Click ()
Dim STR As String * 255
GetComputerName STR, 255
StrConv STR, vbFromUnicode
Can display properly
End Sub
CodePudding user response:
The