Guys,
If the problem was encountered while you're trying to run an application on visual Studio 2010 in your windows 7 win64bits: In my own case, I wanted to run an OpenCV 2.2 test program.
I only had to download and install visual studio 2008 c++ express and that solved it.
I guess a file was missing earlier, which the VS 2008 package included

Hope it works for you:)