deleting a class in visual c++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 19
Reputation: noraantonia is an unknown quantity at this point 
Solved Threads: 0
noraantonia noraantonia is offline Offline
Newbie Poster

deleting a class in visual c++

 
0
  #1
Mar 25th, 2008
Hello
I have a problem that keeps repeating. I work in Visual C++ 6, and i deleted a class, i erased it from program files/microsoft visual studio/my projects/bla bla.. and i deleted the code in it(the header and cpp file), and it dissapeared from the class tree in my workspace, but i get this error everytime i compile :

fatal error C1083: Cannot open source file: 'C:\Program Files\Microsoft Visual Studio\MyProjects\Diploma\SferaDlg.cpp': No such file or directory

(the class name was sferadlg)

Why? what should i delete more? i don't know what to do, i have to start a new project because i can't solve this error..
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,401
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1467
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: deleting a class in visual c++

 
0
  #2
Mar 25th, 2008
try deleting all the *.obj and *.pch files then recompile everything.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 978
Reputation: mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice mitrmkar is just really nice 
Solved Threads: 208
mitrmkar mitrmkar is offline Offline
Posting Shark

Re: deleting a class in visual c++

 
0
  #3
Mar 25th, 2008
You haven't removed the file(s) from the project I guess, so select the desired file in the workspace window's file tree and press Delete.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,401
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1467
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: deleting a class in visual c++

 
0
  #4
Mar 25th, 2008
I just tried it and all I had to do after deleting the *.cpp and *.h files from the file system and deleting them out of the workspace was select menu item Build --> Rebuild All.
Last edited by Ancient Dragon; Mar 25th, 2008 at 8:44 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 19
Reputation: noraantonia is an unknown quantity at this point 
Solved Threads: 0
noraantonia noraantonia is offline Offline
Newbie Poster

Re: deleting a class in visual c++

 
0
  #5
Mar 25th, 2008
Thanks, i did what you said. but the problem was that i needed to delete the files from the "file view" tab too (the cpp and header files). i just deleted them from the "class view" tab first time. maybe you assumed i've already done that anyway now it compiles ok
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC