she皮肤内置,调用SkinH_AttachRes函数,为何不行啊【已解决】
本帖最后由 kenan 于 2011-12-16 15:31 编辑#AutoIt3Wrapper_useupx=n
#AutoIt3Wrapper_Res_File_Add=QQ2009.she,rt_rcdata,qq
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include "resources.au3"
GUICreate("我的 GUI")
$Dll = DllOpen(@ScriptDir&"\SkinH_EL.dll")
;~ DllCall($Dll, "int", "SkinH_AttachEx", "str", @ScriptDir&"\QQ2009.SHE", "str", "benkel")
$p=_ResourceGet("qq")
$s=@extended
DllCall($DLL, "int", "SkinH_AttachRes", "BYTE*", $p, "dword", $s, "str","benkel", "int",0, "int", 0, "int", 0)
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
相关文件打包
这是SkinH_EL.dll得函数声明
http://www.skinsharp.com/htdocs/docs/src/api.htm
下载了,谢谢kenan 回复 1# kenan
有返回什么错误码? 回复 4# showshow
没有,不知道为什么不行啊,郁闷 众神求助啊 编译后运行
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=she.exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Res_File_Add=QQ2009.she,rt_rcdata,qq
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include "resources.au3"
GUICreate("我的 GUI")
$Dll = DllOpen(@ScriptDir&"\SkinH_EL.dll")
;~ DllCall($Dll, "int", "SkinH_AttachEx", "str", @ScriptDir&"\QQ2009.SHE", "str", "benkel")
$p=_ResourceGet("qq")
$s=@extended
DllCall($DLL, "int", "SkinH_AttachRes", "ptr", $p, "dword", $s, "str","benkel", "int",0, "int", 0, "int", 0)
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
回复 7# 3mile
感谢3mile啊,原来是一个参数的问题 学习了,谢谢3SMILE
页:
[1]