|
本帖最后由 410521a 于 2010-6-12 02:34 编辑
问个很奇怪的问题`以前的代码好好的`现在拿出来怎么出错了呢 我看看哪里都没问题```真郁闷都读取不到dir dir1以前好好的呀`
$g_szVersion = "shouyinfuzhu"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)
;~ ======================================================
Dim $Dll, $udata, $Path, $uconfig, $config, $var, $var1, $pifu, $dir, $dir1
$uconfig = @ScriptDir & '\data\config.ini'
$udata = @ScriptDir & '\data\data.ini'
$Path = @ScriptDir & '\data\'
$pifu = IniRead("data\config.ini", "收银助手配置QQ:36951881-此行勿删!-否则程序将无法正常运行!!", "皮肤文件", "")
$Dll = DllOpen($Path & "Skin.dll")
$config = IniRead("data\config.ini", "收银助手配置QQ:36951881-此行勿删!-否则程序将无法正常运行!!", "启用皮肤", "")
$var = FileExists($udata)
$var1 = FileExists($uconfig)
$dir = IniReadSectionNames($udata)
$dir1 = IniReadSectionNames($uconfig)
If $config = "是" Then
DllCall($Dll, "int", "SkinH_AttachEx", "str", $Path & $pifu, "str", "benkel")
DllCall($Dll, "int", "SkinH_SetAero", "int", 0)
EndIf
If $var = 0 Then
MsgBox(64, "错误", "未找到数据库文件\data\data.ini")
Exit
ElseIf $var1 = 0 Then
MsgBox(64, "", "未找到到配置文件\data\config.ini")
Exit
EndIf
If $dir <> "By:陈伟东 QQ:36951881-此行勿删!-否则程序将无法正常运行!!" Then
MsgBox(16, "警告", "请保留作者的信息!" & @CRLF & "否则,程序不能继续运行!")
MsgBox(0, "", $dir & @CRLF & $dir1)
Exit
EndIf
If $dir1 <> "收银助手配置QQ:36951881-此行勿删!-否则程序将无法正常运行!!" Then
MsgBox(16, "警告", "请保留作者的信息!" & @CRLF & "否则,程序不能继续运行!")
Exit
EndIf |
|