Jump to content
Sign in to follow this  
mesale0077

rc file to res file convert

Recommended Posts

mesale0077

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

Share this post


Link to post
Share on other sites
water

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 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Gibbz

if u mean change file extension only

u can use file copy

Share this post


Link to post
Share on other sites
water

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 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
wolf9228

$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 Files

http://msdn.microsoft.com/en-us/library/windows/desktop/aa380599%28v=vs.85%29.aspx

VS_VERSIONINFO structure

http://msdn.microsoft.com/en-us/library/windows/desktop/ms647001%28v=vs.85%29.aspx

Edited by wolf9228

صرح السماء كان هنا

 

Share this post


Link to post
Share on other sites
mesale0077

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

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  

×