In my case, I had this problem when trying to link in an MFC extension
DLL, so my app couldn't link MFC statically. When you link MFC
dynamically you have to have the MFC runtimes _already_on_the_device_.
I don't know why VS2005 doesn't put them there for you.
So I copied the MFC, ATL, etc.. runtime DLLs to \windows and everything
worked great again.
See this link for more information.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppc.../html/c
-PaulH