找回密码
 加入
搜索
查看: 5239|回复: 8

[GUI管理] she皮肤内置,调用SkinH_AttachRes函数,为何不行啊【已解决】

  [复制链接]
发表于 2011-12-15 18:06:13 | 显示全部楼层 |阅读模式
本帖最后由 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
 楼主| 发表于 2011-12-15 18:08:53 | 显示全部楼层
相关文件打包
这是SkinH_EL.dll得函数声明
http://www.skinsharp.com/htdocs/docs/src/api.htm

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-12-15 19:14:05 | 显示全部楼层
下载了,谢谢kenan
发表于 2011-12-15 21:17:04 | 显示全部楼层
回复 1# kenan


    有返回什么错误码?
 楼主| 发表于 2011-12-15 23:22:06 | 显示全部楼层
回复 4# showshow


    没有,不知道为什么不行啊,郁闷
 楼主| 发表于 2011-12-16 10:38:18 | 显示全部楼层
众神求助啊
发表于 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
 楼主| 发表于 2011-12-16 15:30:33 | 显示全部楼层
回复 7# 3mile


    感谢3mile啊,原来是一个参数的问题
发表于 2013-4-15 20:34:56 | 显示全部楼层
学习了,谢谢3SMILE
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-10 17:43 , Processed in 0.088058 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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