Hello Scott,
I'm not sure I have understood your issue completely. It seems you want to
add a System Environment Variable, correct? I'm sorry, but I don't' think
it is Macro related. Am I missing anything here? If I misunderstand anthing
here, please don't hesitate to correct me.
Moreover, could you please also let us know the reason why do you want to
add such Environment Variable? Do you have any business requirement?
The more details you provide, the more helpful answer we can provide.
Please also feel free to let me if I have any more concern. We are glad to
assist you.
Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Scott - 25 Apr 2008 14:26 GMT
Pick a cpp project from the solution view in VS2008, Click properties, Build
Events, post-Build events. Then click the ... at the end of the Command line
text box. Now click on Macros>>
Now you can see a name with its corresponding value, I assumed these were
macros since they were displayed when I clicked the "Macros" button.
What ever they are called I would like to "simply" create one for all
projects in my solution or better yet, global to all my solutions.
All projects that I deal with seem to have the same capability in the post
build event dialog, and I would like to create a common "macro" for a output
directory. Yes I can create a path with a combination of these macros, but a
single macro for all projects would make these commands easier to read and
less error prone.

Signature
Scott
> Hello Scott,
>
[quoted text clipped - 36 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
> I would like to be able to create a macro such as $(OutDir) with my own
> value, lets say $(MyOutDir).
(This is how you could do this in VS2005.)
You can create a property sheet, inherit your project settings from it,
and create that makro in the property sheet. (See also the Property
Manager view.)
Gerhard
Scott - 25 Apr 2008 14:42 GMT
Gerhard,
Thanks for the reply.
I tried this in VS2008 and it seems to work just fine.
Thanks again.

Signature
Scott
> > I would like to be able to create a macro such as $(OutDir) with my own
> > value, lets say $(MyOutDir).
[quoted text clipped - 6 lines]
>
> Gerhard