GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 15-Dec-2004, 15:12
acsinha acsinha is offline
New Member
 
Join Date: Dec 2004
Posts: 2
acsinha is on a distinguished road
Question

Class dissapear from Class view tab


Hi, while working on a project on MDI applications, I created a function in a class through ClassWizard. Then I deleted it. It commented my function definition. That's ok. But that class dissapeared from the class view, though the program compiles and runs successfully. How to restore that class in the class view?
  #2  
Old 16-Dec-2004, 03:07
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by acsinha
Hi, while working on a project on MDI applications, I created a function in a class through ClassWizard. Then I deleted it. It commented my function definition. That's ok. But that class dissapeared from the class view, though the program compiles and runs successfully. How to restore that class in the class view?

Unfortunatelly, Class Wizard will do things like that sometimes....and even worst!
What version are you currently using? If you didn't switch to .NET yet, maybe you should think about it.
Anyway, I could give you a stupid solution (I'm sure you already thought of that): just copy the code you already have in your class, delete that class and everything belonging to it, then recreate it and put the code back!
It's lame, I know, but unless someone comes with a better suggestion, I've got nothing else .

Kind regards,
Luci
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
Last edited by LuciWiz : 03-Jan-2005 at 07:27.
  #3  
Old 27-Dec-2004, 16:00
shvalb
 
Posts: n/a
Question

I have a good solution, I believe, simply, close your prject and go to the directory where the project is in and delete the .ncb file, that's it, when you reload your program it will create the class-view again this time containing all the classes.
  #4  
Old 30-Dec-2004, 21:46
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
nice shvalb, I would keep that in mind,
this hapens alot to me also...
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Introduction to .NET LuciWiz .NET Forum 5 09-Aug-2007 05:53
Error C2146: syntax error : missing ',' before identifier 'C4' mattchew008 C++ Forum 2 19-Dec-2004 07:06
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 04:38
hashing help saiz66 C++ Forum 1 06-Jul-2004 07:16

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:56.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.