Sign in to follow this  

How do I delete a class from the workspace?

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using Visual C++ 6.0 and I can't figure out how to delete a class from the left side of the program (Workspace? Class View) I deleted the .h and .cpp file which held this class from the file view and from my computer... So when I double click on the class it says file .h missing but it will not delete the class from the class view. How do I delete it?

Share this post


Link to post
Share on other sites
You need to remove the .h and .cpp files from the project too. Goto the "Files" tab (or whatever it's called), and delete the 2 files from there.
If that doesn't work, try exiting MSVC, and deleting the .clw and .ncb files from the project folder.

Share this post


Link to post
Share on other sites
thanks! I deleted the .ncb file and now I could delete classes by deleting .h and .cpp. I could not find .clw file. Also new problem.. Now I can't get to functions when clicking on a function of a class... the .cpp is included but all comments are black instead of blue! Something in not right. All #include are black too.. all if,else, are black too

Share this post


Link to post
Share on other sites
Also now my class view has all kinds of tags, IDirect3D stuff and device stuff.. So there are like 10 of my classes and about 40 of this new stuff that I don,t want. Basically stuff from mmsystem.h, dinput.h, and DPlay8.h,and is in my class view. I've never had this happen.

Share this post


Link to post
Share on other sites
The DirectX interfaces should only be in your class view if you added the headers to your project. If all the text in a file is black, MSVC doesn't recognise it as a .cpp file. Are you sure the file extension is .cpp?

Share this post


Link to post
Share on other sites

This topic is 4691 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this