kenan 发表于 2011-12-15 18:06:13

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

kenan 发表于 2011-12-15 18:08:53

相关文件打包
这是SkinH_EL.dll得函数声明
http://www.skinsharp.com/htdocs/docs/src/api.htm

mozha 发表于 2011-12-15 19:14:05

下载了,谢谢kenan

showshow 发表于 2011-12-15 21:17:04

回复 1# kenan


    有返回什么错误码?

kenan 发表于 2011-12-15 23:22:06

回复 4# showshow


    没有,不知道为什么不行啊,郁闷

kenan 发表于 2011-12-16 10:38:18

众神求助啊

3mile 发表于 2011-12-16 14:03:04

编译后运行
#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

kenan 发表于 2011-12-16 15:30:33

回复 7# 3mile


    感谢3mile啊,原来是一个参数的问题

Yuan310 发表于 2013-4-15 20:34:56

学习了,谢谢3SMILE
页: [1]
查看完整版本: she皮肤内置,调用SkinH_AttachRes函数,为何不行啊【已解决】