Reading Resource file info

Started by Douglas McDonald, July 12, 2010, 01:59:33 PM

Previous topic - Next topic

Douglas McDonald

I did a search but didn't see anything. How do I read the resource file. I want to get the info thats in the projects properties.


Begin
  BLOCK "StringFileInfo"
  Begin
    BLOCK "040904E4"
    Begin
      VALUE "CompanyName",  "ECD\0"
     
      VALUE "FileVersion",       "1.0.0.0\0"
      VALUE "ProductVersion",    "1.0.0.0\0"
      VALUE "ProductName",  "program\0"
      VALUE "InternalName",  "program\0"
      VALUE "OriginalFilename",  "program.exe\0"
      VALUE "LegalCopyright",  "my name 2010\0"
     
      VALUE "Comments",  "program\0"
    End


I didn't see anything in the help file ether but this must be very simple.

Thank you
Doug
Doug McDonald
KD5NWK
www.redforksoftware.com
Is that 1's and 0's or 0's and 1's?

Robert Eaton

Look up the APP function. (Similar to VB.)

Rolf Brandt

You could use somehing like this:

   Local aName As Asciiz * %MAX_PATH   
   Local aVerInfo As Asciiz *20
   Local aInfo As Asciiz * %MAX_PATH
   Local aDescr As Asciiz * %MAX_PATH
   
   aName=app.productname     
   aVerInfo= "v. " & Format$(app.ProductMajor) & "." & Format$(app.ProductMinor) & _
          "." & Format$(app.ProductRevision) & " Rev. " & Format$(app.FileBuild) 
   aInfo=app.LegalCopyright 
   aDescr = app.FileDescription   

Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Paul Squires

Info on the App variable is located in the Help file under "Special Functions".
Paul Squires
PlanetSquires Software

Douglas McDonald

Ok thanks. I thought I saw it once someplace but doing a search revealed nothing. I'll take a look there.

Thanks
Doug McDonald
KD5NWK
www.redforksoftware.com
Is that 1's and 0's or 0's and 1's?