Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2008

Tip: Looking for answers? Try searching our database.

Visual Studio 2005 not coloring C++ files correctly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
steveA - 19 Feb 2008 14:07 GMT
I have a solution with several projects.  Some C++ files are used in multiple
projects that have different Preprocessor definitions.  The Editor seems to
use the definitions of the first project (?) to set the coloring.  Thus some
code is greyed out when it shouldn't be.  Whose bug is this?

/steveA

Signature

Steve Alpert
my email fgrir.nycreg @ tr.pbz is encrypted with ROT13 (www.rot13.org) and
spaces

Alex Blekhman - 19 Feb 2008 14:20 GMT
> I have a solution with several projects.  Some C++ files are
> used in multiple
[quoted text clipped - 3 lines]
> coloring.  Thus some
> code is greyed out when it shouldn't be.  Whose bug is this?

I think that VS uses defenitions of currently active project.

HTH
Alex
steveA - 21 Feb 2008 14:04 GMT
> > I have a solution with several projects.  Some C++ files are
> > used in multiple
[quoted text clipped - 8 lines]
> HTH
> Alex

That's what I would have thought also but it doesn't appear to.  In fact, if
I edit the condition on a #if, the coloring momentarily changes to dark and
then goes back to grey!  This solution originally came from vs2003 (from VC6)
so I don't know if there is some vestige in the sln and vcproj files that is
causing this.

/steveA

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.