Hello, How do I exclude a particular include file from my VS 2005 Project/Solution? Currently there is a code in my project/solution (written by some one else) which has a class named say Class1. Apparently the same class Class1 is also found in Platform SDK include file. So, when I try to compile, VS is identifying the sybmol macth to VS include file - rather than the include file that is local to project. One way is for me to replace Class1 in my solution to something like Class111, but I fear that it may break code in various other places. Hence, I want to exclude only that particular include (.h) file from Platform SDK, but not other (.h) files, becuase they are necessary for other builds.
Can you move your class to a different namespace? Mark -- Mark Salsbery Microsoft MVP - Visual C++ "Deepak" wrote in message news:68BE1C39-9CCA-4ECE-9989-0B4D081C9326@microsoft.com... > Hello, > > How do I exclude a particular include file from my VS 2005 > Project/Solution? > Currently there is a code in my project/solution (written by some one > else) > which has a class named say Class1. Apparently the same class Class1 is > also > found in Platform SDK include file. So, when I try to compile, VS is > identifying the sybmol macth to VS include file - rather than the include > file that is local to project. One way is for me to replace Class1 in my > solution to something like Class111, but I fear that it may break code in > various other places. Hence, I want to exclude only that particular > include > (.h) file from Platform SDK, but not other (.h) files, becuase they are > necessary for other builds. > >
Deepak, you can hide this SDK header file with "#pragma include_alias". Just redirect it to an empty file. You can do funny things with this alias! /Helge