Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

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
0
hari4130
Asked:
hari4130
  • 2
  • 2
1 Solution
 
AxterCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now