mesale0077 Posted October 6, 2012 Share Posted October 6, 2012 hi how is convert ,a rc file to make a res file ı want not use rc.exe or another code $OutResPathee="versioninfo.rc" $OutResPathee_1=FileOpen($OutResPathee ,16) $p_VS_VERSIONINFO_Total=FileRead($OutResPathee_1,1) $OutResPath = @ScriptDir & "\versioninfo.res" Local $Fh = FileOpen($OutResPath, 2 + 16) FileWrite($Fh, DllStructGetData($p_VS_VERSIONINFO_Total, 1)) FileClose($Fh) FileClose($OutResPathee) thank you now Link to comment Share on other sites More sharing options...
water Posted October 6, 2012 Share Posted October 6, 2012 To use DLLStructGetData there needs to be a struct. $p_VS_VERSIONINFO is just a variable. What's the value of @error after DLLStructGetData? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Gibbz Posted October 6, 2012 Share Posted October 6, 2012 if u mean change file extension only u can use file copy Link to comment Share on other sites More sharing options...
water Posted October 6, 2012 Share Posted October 6, 2012 I mean you use DllStructGetData inj your code to retrieve data from a structure but you do not create the structe anywhere in your code. So DllStructGetData will return an error in macro @error. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
wolf9228 Posted October 6, 2012 Share Posted October 6, 2012 (edited) $tagVS_VERSIONINFO = _ "WORD wLength;" & _ "WORD wValueLength;" & _ "WORD wType;" & _ "WCHAR szKey;" & _ "WORD Padding1;" & _ "DWORD dwSignature;" & _ "DWORD dwStrucVersion;" & _ "DWORD dwFileVersionMS;" & _ "DWORD dwFileVersionLS;" & _ "DWORD dwProductVersionMS;" & _ "DWORD dwProductVersionLS;" & _ "DWORD dwFileFlagsMask;" & _ "DWORD dwFileFlags;" & _ "DWORD dwFileOS;" & _ "DWORD dwFileType;" & _ "DWORD dwFileSubtype;" & _ "DWORD dwFileDateMS;" & _ "DWORD dwFileDateLS;" & _ "WORD Padding2;" & _ "WORD Children;" Using RC (The RC Command Line)http://msdn.microsoft.com/en-us/library/windows/desktop/aa381055%28v=vs.85%29.aspx About Resource Fileshttp://msdn.microsoft.com/en-us/library/windows/desktop/aa380599%28v=vs.85%29.aspx VS_VERSIONINFO structurehttp://msdn.microsoft.com/en-us/library/windows/desktop/ms647001%28v=vs.85%29.aspx Edited October 6, 2012 by wolf9228 صرح السماء كان هنا Link to comment Share on other sites More sharing options...
mesale0077 Posted October 7, 2012 Author Share Posted October 7, 2012 ok VALUE "FileVersion", "4.0.0.54" VALUE "Comments", "@mesale0077" VALUE "FileDescription", "xxxxxxx" VALUE "LegalCopyright", "@mesale0077 2012-2013" VALUE "CompanyName", "@mesale0077 Software Production" VALUE "ProductName", "xxxxxxx" VALUE "ProductVersion", "3.3.8.1" VALUE "Coder", "@mesale0077" VALUE "Make date", "02-06-2012" dont use RC.exe with autoit how is new res file make 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