1、"莫"在编辑状态下不是乱码,显示的时候却是
2、MsgBox(0,"你","莫"),就是正常的;MsgBox(0,"","莫")就是乱码 编码问题,不算BUG $hGUI = GUICreate("My GUI", 300, 200)
_WinAPI_MsgBox($hGUI,"test","莫",64+1)
Func _WinAPI_MsgBox($hWnd,$Title,$Text,$Flag)
Local $aResult
$aResult=DllCall("user32.dll","int","MessageBox","hwnd",$hWnd,"str", $Text,"str",$Title,"int",$Flag)
If @error Then Return SetError(@error, 0, False)
Return $aResult
EndFunc
问题依旧。。。。不解 用蜘蛛兄的方法变通下:
$hGUI = GUICreate("My GUI", 300, 200)
_WinAPI_MsgBox($hGUI,"test","莫",64+1)
Func _WinAPI_MsgBox($hWnd,$Title,$Text,$Flag)
Local $aResult
local $temp=BinaryToString(StringToBinary($Text,4),1)
$aResult=DllCall("user32.dll","int","MessageBox","hwnd",$hWnd,"str", $temp,"str",$Title,"int",$Flag)
If @error Then Return SetError(@error, 0, False)
Return $aResult
EndFunc 原来是这样。 BUG你个头,这都叫BUG 那bUG就多的去了 注意编码问题!
页:
1
[2]