piterek Posted December 22, 2009 Share Posted December 22, 2009 Easy way to get resources form DLL file??In what easy way get files like .jpg ; .ico ; .png from DLL file??I'm looking something like:$image_jpg_file_1 = _get_file_from_dll("abcd.dll","1") guictrlcreatepic($image_jpg_file_1,0,0,100,100)Ofcourse I know that it will be not so easy but... Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 22, 2009 Moderators Share Posted December 22, 2009 piterek,If you use Zedna's Resources UDF, which you can find here, it is surprisingly easy! However, you MUST read the thread carefully and play with the examples - the UDF is powerful, but you must use the right syntax, etc or it will not work as you expect.Go and play with the examples that Zedna has provided and came back if you have problems.m23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Authenticity Posted December 22, 2009 Share Posted December 22, 2009 Minimizing it into something similar to: #include <Constants.au3> #include <WinAPI.au3> Local $hGUI, $Pic, $sDll, $hIcon, $hInst ; ... $Pic = GUICtrlCreateIcon($sDll, 20, 10, 10, 32, 32) ; The 21th icon index ; Similar to $hInst = _WinAPI_LoadLibrary($sDll) $hIcon = _WinAPI_LoadImage($hInst, 20, $IMAGE_ICON, 0, 0, $LR_DEFAULTSIZE) GUICtrlSendMsg($Pic, 0x0170, $hIcon, 0) _WinAPI_DestroyIcon($hIcon) _WinAPI_FreeLibrary($hInst) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now