Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Wed, 13 Feb 2008 09:11:03 -0800,    group: microsoft.public.vstudio.development        back       


Exclude #include ... Files from Build VS 2005 Pro   
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.
date: Wed, 13 Feb 2008 09:11:03 -0800   author:   Deepak

Re: Exclude #include ... Files from Build VS 2005 Pro   
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.
>
>
date: Wed, 13 Feb 2008 12:43:07 -0800   author:   Mark Salsbery [MVP] MarkSalsbery[MVP]@newsgroup.nospam

Re: Exclude #include ... Files from Build VS 2005 Pro   
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
date: Thu, 14 Feb 2008 09:21:29 +0100   author:   Helge Kruse

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us