找回密码
 加入
搜索
楼主: wsfda

[BUG报告] MsgBox 问题,不知道算不算BUG

 火... [复制链接]
发表于 2011-6-15 19:26:46 | 显示全部楼层
支持下了,原来如此了,学习了
发表于 2011-6-16 18:27:29 | 显示全部楼层
不是BUG,我试了楼主代码,显示正常。
发表于 2011-6-17 15:52:59 | 显示全部楼层
这个是bug
1、"莫"在编辑状态下不是乱码,显示的时候却是
2、MsgBox(0,"你","莫"),就是正常的;MsgBox(0,"","莫")就是乱码
发表于 2011-6-17 17:54:41 | 显示全部楼层
编码问题,不算BUG
发表于 2011-6-18 22:54:11 | 显示全部楼层
$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[0] 
EndFunc

问题依旧。。。。不解
发表于 2011-6-19 14:10:04 | 显示全部楼层
用蜘蛛兄的方法变通下:
$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[0] 
EndFunc
发表于 2011-6-19 18:27:00 | 显示全部楼层
原来是这样。
发表于 2011-6-20 14:18:43 | 显示全部楼层
BUG你个头,这都叫BUG 那bUG就多的去了
发表于 2011-10-30 10:46:56 | 显示全部楼层
注意编码问题!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-25 01:28 , Processed in 0.067182 second(s), 14 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表