changing cpp filename after build

I have changed the cpp filename after the previous build.   (from graph6.cpp tp graph7.cpp)

Now when i open the same solution to rebuild, it gives the following error

"fatal error C1083: Cannot open source file 'graph6.cpp' :No such file or directory"

Can anyone tell me how to overcome this problem?. Do i need to make any changes in the project settings ??

Thanks
hari4130Asked:
Who is Participating?
 
AxterConnect With a Mentor Commented:
Hi hari4130,
Go to FileView and delete the old file from the project, and add the new file to the project.

David Maisonave :-)
Cheers!
0
 
hari4130Author Commented:
thanks david. that worked.

Is there a way i can customize my build in VS.NET. I would like to automatically run a "bat file" right after building the solution ?



0
 
AxterCommented:
>>Is there a way i can customize my build in VS.NET. I would like to automatically run a "bat file" right after building the solution ?

There should be, because this option is available in VC++ 6.0.
However, I don't have access to .Net right now, so I can't tell you exactly what menu option to use to add that option.
0
 
hari4130Author Commented:
if you can tell me the steps , how you do it in VS 6.0, i will try to figure it it out in VS.NET.

i think it should be the same way.

thanks
0
 
rcarlanCommented:
>>Is there a way i can customize my build in VS.NET. I would like to automatically run a "bat file" right after building the solution ?

Not on the solution, but you can do it on the project:
Project | Properties | Common Properties | Build Events

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.