Archive for the ‘Visual Studio’ Category

C2471 Visual Studio error fixed by removing precompiled headers

Monday, March 31st, 2008

I inherited a medium sized C++ app last week that I couldn’t get to compile with Visual Studio 2008. The compiler kept spitting out the error “C2471: cannot update program database”.

According to Microsoft’s online knowledge base they’ve been aware of the problem and working on a fix. As of last week there wasn’t a hotfix available for download, but this morning there is. You can get it here: http://support.microsoft.com/kb/946040.

Personally, I haven’t tried the fix yet, because I came up with another workaround that will get me by for now. What did I do? I disabled precompiled headers in the project settings. That seemed to do the trick.

C++ experience in VS2008 is aweful

Thursday, March 13th, 2008

Normally I don’t want to pile on with something like this, but I’ve had three people ask me in the last couple days to come public with my concerns about C++ in Visual Studio 2008. Plain and simple it’s aweful.

First, as others have pointed out there can be some linker problems. I, personally, haven’t run into them, but I have a friend that has. His workaround? He’s taken a hiatus from VS2008 until the dust settles.

My other big concern is performance. Plain and simple, C++ compilation is a total dog. It’s so slow you begin to ask yourself, “Is the environment locked up?” It’s so slow you begin to ask yourself, “Is this really the release version of VS?” It’s so slow you begin to ask yourself, “Why am I even bothering?”

There’s more to it than just performance and some embarrassing bugs, though. The “experience” is aweful. Some of this has to do with the editor (refactoring support, for instance). Some of this has to do with the language itself–and the unfortunate choices that have been made over the last several years (such as, reliance on STL and even header/source code issues with heavy use of templates). Some of it has to do with people pulling in COM where it shouldn’t be. Some of it’s flawed thinking that managed C++ is good enough. What’s with SDKs anymore, I keep wondering?

Anyway, I’ve gone into each of these issues before over the last couple of years, so I don’t want to rehash them now, but wow do they get my programming bits boiling. Where’s the big thinking going on when it comes to C++? Where’s the innovation? I’m totally perplexed.

C++ is all but dead in terms of Visual Studio. It’s terribly unfortunate, because it’s a pretty good choice for lots of forthcoming, small devices as well as high-end, high-perfomance systems.

.NET framework source to be accessible via debugger

Wednesday, October 3rd, 2007

Finally. Microsoft is going to make public the source code for at least part of the .NET Framework. And beginning with Visual Studio 2008 you’ll be able to drill down into the source code when debugging your apps. No more guessing or using Reflector to figure out what the framework is doing and how best to write your code.

This is a smart move by Microsoft and one that they should have done long ago. MFC was a perfect example of how well a public source framework can be.

Two cheers for Scott Guthrie and crew for making this happen. It’s about time.

There’s lots of reaction on TechMeme.

VS2008 SDK August CTP

Tuesday, August 21st, 2007

Julie Lerman caught this: Visual Studio 2008 SDK - August 2007 CTP.

“This CTP includes tools, documentation, and samples for developers to write, build, test, and deploy extensions for Visual Studio 2008 Beta 2.”

Added to my today list that’ll I’ll get done sometime this week :-) Yeah, it’s one of those times when it’s hard to keep up with even the little things.