Kinook Software Forum

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-30-2006, 10:48 AM
ASolovey ASolovey is online now
Registered User
 
Join Date: 05-25-2005
Posts: 13
Question VB6: Slashes in the macro disappeared

Hi,

I had VB5x. There is a macro in my globals:

<macro>
<name>RC_OPTS</name>
<description>options for resource compiler to make version info in C++ native projects</description>
<envvar type='11'>-1</envvar>
<value>/dFILE_VERSION_BIN=%FILE_VERSION_BIN% /dPRODUCT_VERSION_BIN=%PRODUCT_VERSION_BIN% /dFILE_VERSION=\"%FILE_VERSION_BIN%\" /dPRODUCT_NAME=\""%PRODUCT_NAME%"\" /dPRODUCT_VERSION=\"%PRODUCT_VERSION_BIN%\"</value>
</macro>

This macro assembles command line for resource compiler from few other macros.

This is how result looked like in VB5x:

/dFILE_VERSION_BIN=2,4,0,6 /dPRODUCT_VERSION_BIN=2,4,0,6 /dFILE_VERSION=\"2,4,0,6\" /dPRODUCT_NAME=\""My Project"\" /dPRODUCT_VERSION=\"2,4,0,6\"

Everything was OK. Notice, that slashes were preserved.
Now I has installed VB6.

With the same globals it produces this:
/dFILE_VERSION_BIN=2,4,0,6 /dPRODUCT_VERSION_BIN=2,4,0,6 /dFILE_VERSION="2,4,0,6" /dPRODUCT_NAME=""My Project""

You can see that VB6 differently handles things like this:
/dPRODUCT_NAME=\""My Project"\",
specifically - \"". Slashes have disappeared.

Is it a bug? Side effect? Feature?

What should I specifiy in the macro in order to have the result look like this: \""My Project"\" (including slashes)?

Alex.
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 05:46 PM.


Copyright © 1999-2023 Kinook Software, Inc.