Sign in to follow this  
Followers 0
MrVietA2

Get Image from dll ?

2 posts in this topic

Hi everyone !

I want to get image from file .dll and put it in GUI, how i can do this ? Please help me ! Thanks !

P/s : My english is bad :graduated:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Oh, i found it

#include "GUIConstantsEx.au3"
#include "StaticConstants.au3"
#include "resources.au3"
$gui = GUICreate("example ",400,400) $pic1 = GUICtrlCreatePic("",0,0,400,150) ; set image to picture control from external DLL resource _ResourceSetImageToCtrl($pic1, "#17", $RT_BITMAP, @ScriptDir & "\ResDll.dll")
GUISetState(@SW_SHOW) While 1  If GUIGetMsg() = -3 Then Exit Wend

Thanks every one ! :graduated:

Edited by MrVietA2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0