Hi There, i love the way how to attach resources to an exe.
i created a wrapper for attaching bulk stuff to an exe.
you just have to add
#AutoIt3Wrapper_useupx=n<BR> #AutoIt3Wrapper_run_after="add_ress.exe "%out%""
at the header of your script.
Hi and thanks for your wrapper.
I like your idea but I think #AutoIt3Wrapper resource directive will be better (and AutoIt3Wrapper is standard part of Scite4Autoit so no aditional files).
When I will finish my UDF (I'm busy now but this week it could be done - I have all needed API calls prepared) I will make request to JdeB to make some AutoIt3Wrapper resource directive.
In my my new UDF will be following functions for even more simple examples:
_ResourceGet($ResName, $ResType, $ResLang = 0)
_ResourceGetAsString($ResName, $ResType, $ResLang = 0)
_ResourceGetAsBytes($ResName, $ResType, $ResLang = 0)
_ResourceSetImageToCtrl($CtrlId, $ResName, $ResType)
Look at my post #2
I prefer this kind of AutoIt3Wrapper directive:
so it's: #AutoIt3Wrapper_Res_Data_Add=filename,datatype,resource name
- resource name can be optional, if not used then will be the same as file name
Notes about your wrapper:
- dynamic numbers in resource names are danger, rather I would used resource name identical to file name instead (it can be used with no problems)
- lack of way to define resource type is bad by my opinion
I want to make resource directives to be the most general and the most similar to other dev. languages (VB,Delphi,...)
Edited by Zedna, 16 August 2007 - 02:02 PM.