Jump to content

rc file to res file convert


Recommended Posts

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

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 - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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 - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

$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

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

 

Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...