title: R6034 runtime error after renaming Visual Studio 2008 MFC project
body: <p>I was recently tasked with doing a complete rename of one of our company's products. Currently it is built using MFC in Visual Studio 2008. I attempted to do the rename from within Visual Studio by using Find/Replace as well as renaming various project properties; however, when I ran it (after successful build/link) I got the following error:</p>
  <blockquote>
  <p>Runtime Error!</p>
  <p>Program: d...</p>
  <p>R6034</p>
  <p>An application has made an attempt
  to load the C runtime library incorrectly. Please contact the application's support team for more information.</p>
  </blockquote>
  <p><img src="https://i.stack.imgur.com/rKvVl.jpg" alt="enter image description here" /></p>
  <p>I figured I had messed something up, so I pulled a clean copy of the project, confirmed that it built/linked/ran fine and then proceeded to rename using an external editor. After a tedious hour or so I had renamed everything. When running, I encountered the same R6034 error.</p>
  <p>I started diving into this error and most of the time it seemed to be caused by a missing manifest file. I compared the good (original name) copy of the application's settings and everything is identical save for a few names. The manifest is being generated and is embedded. I opened the executable in VS2008 and confirmed RT_MANIFEST existed and had an ID of 1. The manifest itself is identical to the one in the working assembly. I tried using an external manifest and the same problem occurred.</p>
  <p>It is looking like I might have to port this entire application by hand, but I still have no way of knowing if that will actually work. Any ideas?</p>