Change path in Additional Include Directories. Is that possible?
-
Hello everybody, i am working with VS 2008. I would like to change the Path dynamically in Additional Include Directories (Project Properties->Linker). Is that possible? I would like to work with two set of SDKs'. After comparing the version, i would like to include appropriate versions of SDK. This is my situation. Thanks in Advance. Regards, A. Gopinath.
-
Hello everybody, i am working with VS 2008. I would like to change the Path dynamically in Additional Include Directories (Project Properties->Linker). Is that possible? I would like to work with two set of SDKs'. After comparing the version, i would like to include appropriate versions of SDK. This is my situation. Thanks in Advance. Regards, A. Gopinath.
I don't know how you could do this dynamically; an easier way would be to create a copy of the project with all the same settings except for this one value.
Unrequited desire is character building. OriginalGriff
-
I don't know how you could do this dynamically; an easier way would be to create a copy of the project with all the same settings except for this one value.
Unrequited desire is character building. OriginalGriff
-
Hello everybody, i am working with VS 2008. I would like to change the Path dynamically in Additional Include Directories (Project Properties->Linker). Is that possible? I would like to work with two set of SDKs'. After comparing the version, i would like to include appropriate versions of SDK. This is my situation. Thanks in Advance. Regards, A. Gopinath.
You can use preprocessor directives to do all that... for example:
#ifdef SDK1
#pragma comment(lib, "sdk1.lib")
#include "sdk1/sdk1.h"
#elif SDK2
#pragma comment(lib, "sdk2.lib")
#include "sdk2/sdk2.h"
#endifThen just the preprocessor directive SDK1 or SDK2 as a switch within the configuration manager.