User-defined Macros in C++ project

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
 Hi everyone, 

Not sure if the question has been asked. In my case, I got a .sln with both C++ projects and C# projects with Visual Studio 2005.

Let say I need to use two version of a software in two different C++ projects, software_1_03 and sofware_1_04

so I cannot set the var $(software_version) by setting up a environment variable.

I have been looking to use user-defined Macros to set different value for $(software_version) in different vcproj or vsprops. But I am not sure the steps to go.

so first thing, is it possible to do so?

and

can anyone suggest me with a example?

Many thanks in advance.
Jacky

View the full article
 
Back
Top