Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Change path in Additional Include Directories. Is that possible?

Change path in Additional Include Directories. Is that possible?

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestionannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tagopi
    wrote on last edited by
    #1

    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.

    L A 2 Replies Last reply
    0
    • T tagopi

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      T 1 Reply Last reply
      0
      • L Lost User

        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

        T Offline
        T Offline
        tagopi
        wrote on last edited by
        #3

        Hello Richard, Thanks for your reply. Right now i am doing like that only. I just want to know whether it is possible or not. so only i posted here. Thanks again. Regards, A. Gopinath.

        1 Reply Last reply
        0
        • T tagopi

          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.

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          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"
          #endif

          Then just the preprocessor directive SDK1 or SDK2 as a switch within the configuration manager.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups