TaPuZ Posted June 11, 2009 Share Posted June 11, 2009 Hi. I've read so much, hoping being able to use that damned dll! But I don't understand anything! Who should be able to explain to an old stupid froggy how to do so? Let's try with an easy shoot : I've embeded 'toto.jpg' in 'toto.dll' And, in my code, I want to do a splash image with the 'toto.jpg' from 'toto.dll' Is it even possible? Thanks a lot for reading and/or helping. T@PµZ. Link to comment Share on other sites More sharing options...
monoceres Posted June 11, 2009 Share Posted June 11, 2009 Look at Zedna's resource UDF, it should provide what you need (do a search) Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Zedna Posted June 11, 2009 Share Posted June 11, 2009 Look at Zedna's resource UDF, it should provide what you need (do a search)Here is the link:http://www.autoitscript.com/forum/index.php?showtopic=51103 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
TaPuZ Posted June 11, 2009 Author Share Posted June 11, 2009 (edited) Thanx a lot for all thoses replies... I've already read that topic, and I would be glad to do that way... But, how? I don't even fulfill in embeding my jpg in my exe... I think I should use thoses two lines. #AutoIt3Wrapper_run_after=ResHacker.exe -add %out%, %out%, test_1.txt, rcdata, TEST_TXT_1, 0 _ResourceGetAsImage($ResName, $ResType = $RT_RCDATA, $DLL = -1) For the directories, C:\images\toto.jpg C:\Code\code.au3 Let's say I want to put my toto.jpg, in my code.exe and in my code, make a splashimage with the toto.jpg. How to do so? Edited June 11, 2009 by TaPuZ Link to comment Share on other sites More sharing options...
Zedna Posted June 11, 2009 Share Posted June 11, 2009 (edited) What's wrong with examples in my post?Just look at resource_test_min1.au3 - very simple example script for using UDF--> it's exactly for you Edited June 11, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
TaPuZ Posted June 11, 2009 Author Share Posted June 11, 2009 What's wrong with examples in my post?Just look at resource_test_min1.au3 - very simple example script for using UDF--> it's exactly for youWhat's wrong?Nothing but me, I suppose.When I compile it, with the 'F7', I don't see my pic.#AutoIt3Wrapper_useupx=n#AutoIt3Wrapper_run_after=ResHacker.exe -add %out%, %out%, D:\images\toto.jpg, rcdata, TEST_JPG_1, 0#AutoIt3Wrapper_run_after=upx.exe --best --compress-resources=0 "%out%"#include "resources.au3"$gui = GUICreate("Data from resources simple example 1",400,150)$pic1 = GUICtrlCreatePic("",0,0,400,150)_ResourceSetImageToCtrl($pic1, "TEST_JPG_1") ; set JPG image to picture control from resourceGUISetState(@SW_SHOW)While 1 If GUIGetMsg() = -3 Then ExitWEndDo I forget something?Have I to change a parameter to adapt it? Link to comment Share on other sites More sharing options...
Zedna Posted June 11, 2009 Share Posted June 11, 2009 Read whole my UDF topic. In short: you must have UPX and Reshacker at right place and you must compile script from full Scite4Autoit3 by F7. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
trancexx Posted June 12, 2009 Share Posted June 12, 2009 Having images and stuff in another file (res dll) is good thing because it makes really easy job implement skins, change style, add one, refresh visual style and so on... This is of course for installed applications. If your app will be of different kind than it should carry everything with it self. ... and will not use ini files (never did understand ini obsession of some AutoIt scripters) ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
James Posted June 12, 2009 Share Posted June 12, 2009 ... and will not use ini files (never did understand ini obsession of some AutoIt scripters)INI files are brilliant for small apps. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
trancexx Posted June 12, 2009 Share Posted June 12, 2009 INI files are brilliant for small apps.If one would extended part or two of that statement to its full length I guess it would even hold water. I find very hard to connect what you wrote.INI files are leftovers of some past times used by stubborn peoples. Registry is there for that purposes.Even if they are used it should be for installed applications only.But, like some other stuff this is obviously a matter of a personal taste. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
James Posted June 12, 2009 Share Posted June 12, 2009 Registry is there for that purposes.It can also be dangerous to write to the registry. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
trancexx Posted June 12, 2009 Share Posted June 12, 2009 It can also be dangerous to write to the registry.Ahha, so you wanted to say: "INI files are brilliant for people who don't know what they do."We live in dangerous times. Adopt.And that's why Vista is good. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
James Posted June 12, 2009 Share Posted June 12, 2009 And that's why Vista is good.It's so good it blocks Internet Explorer? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
trancexx Posted June 12, 2009 Share Posted June 12, 2009 What are we talking about? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
James Posted June 12, 2009 Share Posted June 12, 2009 What are we talking about? It's gone too far off-topic. Let's stop. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
TaPuZ Posted June 13, 2009 Author Share Posted June 13, 2009 I sincerely want to thank all of you (inners and outers topics writers ), because all the answers were precious for my understanding. Everything is ok for me now, but do not hesitate to write other answers. Yhankx again. Best Regards, T@PµZ.< Link to comment Share on other sites More sharing options...
Tlem Posted June 13, 2009 Share Posted June 13, 2009 Hé hé, you ask in the two forum ... I think that now you have all of your responses. Best Regards.Thierry 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