compiler problem when I change name of project and component

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

I renamed a project named, say . . . "xxx" to "yyy". I renamed everything
else by that name. However, the compiler still at some point wants to
change back to "xxx". I can't find any setting that still has that old
value. It changes a value in xxx_p.c back to the old value and created
files by the name of the old value "xxx", namely xxx.pch, xxx_i.c, xxx.tlb,
xxx.h. I get an error saying that file xxx.pch is from a previous version.
I resorted to this because I don't know how to create the project myself.
Can someone suggest to me a setting that I need to change or a value I need
to change from "xxx" to "yyy" to be able to make this work?

Daniel
 
I renamed a project named, say . . . "xxx" to "yyy". I renamed everything
else by that name.

Daniel,

What version of VS are you using? If it's a newer version the
project/solution files are text, so you can open them in notepad to
see if you can find any remaining occurrences of the old name.
I get an error saying that file xxx.pch is from a previous version.

Try deleting that pch file, and rebuild all the solution.

Dave
 
I've tried both of those things. Actually, instead of using notepad, I used
Windows Search to search in the project's directory for any occurrences of
the name. I get to where I don't find any occurrences, but when I build the
solution, occurrences of the name appears. I think I'm going to find a
difference solution.

Daniel
 
I've tried both of those things. Actually, instead of using notepad, I used
Windows Search to search in the project's directory for any occurrences of
the name.

I can tell you from first hand experience that the stupid search won't
find things in VS project & solution files ;) If you want something
that will, try Agent Ransack.

Dave
 
Back
Top