Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-09-2008, 10:15 AM
ShiamakD ShiamakD is online now
Registered User
 
Join Date: 04-28-2008
Location: us
Posts: 32
Reading a value of Macro from a external file

Hi,

Is there a way to read a value of macro defined in a file.

i have a header file something like this
#define WIN2K_VERSION 1,0,WIN2K_BLD_ID// for FILEVERSION/PRODUCTVERSION
#define STR_PRODUCT_NAME "Test Dummy Software"// for "ProductName"
#define STR_BUILD_NUMBER "1.0.0.20080208" // for "FileVersion"/"ProductVersion" NN is being excluded for this demo
#define STR_APP_VERSION "1.0" // Test Dummy About box
#define szAppBuildNumber _T("(Build 1.0.0.20080208)") // for About dialogs
#define szAppBuildDate "2020080208"// numeric, 10-digit build ID
#define STR_COMPANY_NAME "Siemens HealthCare Diagnostics" // for "CompanyName"
#define szAppCompanyName _T( STR_COMPANY_NAME )// IDC_APP_COMPANY_NAME
#define STR_COPYRIGHT "Copyright © Siemens HealthCare Diagnostics 2008. All Rights Reserved" // for "LegalCopyright"
#define szAppCopyright _T( STR_COPYRIGHT ) // for About dialogs

Where different strings gets updated at the BUILD time, what i wanna do is create a macro in my Visual Build script then read the VALUE of macro defined/updated in my file then allocate the READ value to my visual build macro and then use it for PROPERTIES section of Make VS 2005 .


To make myself more clear , lets say STR_szAppBuildNumber in my exteral file hold the value of build number that changes everyday, now I would like to read this value of szAppBuildNumer string and allocate this value to a MACRO defined within VisualBuild script , and then use the VisualBuild macro to assing this value to CONFIGURATIOn of PROPERTIES?

Is it possible?

Also does VisualBuild allows a user to ADD additional property strings (in C# its is called assemblyAttributes).

TIA
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:54 PM.


Copyright © 1999-2023 Kinook Software, Inc.