Solved

MSDEV: ClassWizard often stops working

Posted on 2001-07-24
5
242 Views
Last Modified: 2008-03-04
I use MS Visual C++ for most of my programming.  I like the classwizard, but it mysteriously becomes disabled on a regular basis.  Pressing Ctrl-W only causes a beep, and the ClassWizard option on all of the menus becomes disabled.  Also, double-clicking a control on a dialog template only brings up its properties instead of jumping to the code as when the classwizard is enabled.  Does anyone know why it does this and what can be done to bring the classwizard back other than deleting the .clw file associated with the project?
0
Comment
Question by:ris
  • 2
  • 2
5 Comments
 

Expert Comment

by:radud
Comment Utility
1. One instance when the classwizard becomes disabled is when you remove a project (dsp) from your workspace (dsw).

2. Try deleting the <yourworkspace>.ncb file. It is a good idea to do that periodically.
0
 
LVL 22

Expert Comment

by:CJ_S
Comment Utility
There were a couple of cases I found ClassWizard to not respond in Visual C++ 4. In VC++ 6 I haven't had any problems.

The main-problem began for me when I was adding my own code to the functions where classwizard usually inserts it's code. The code was fully working without errors, but the classwizard gave problems. Have you added anything to the reserved classwizard code(s)?

What version of VC++ are you working with?

Regards,
CJ
0
 
LVL 1

Author Comment

by:ris
Comment Utility
I use VC++ 6, with the latest service pack.

I can see how the classwizard would get corrupted if I removed a project from my workspace, but I haven't done that.  I did unload several projects from my workspace close to the last time it stopped working, but I'm not sure if that was exactly what caused it to stop working.

I try to avoid editing code that goes between those classwizard markers.  The only thing I ever do with it is delete code when the classwizard stops working and I need to remove a function.

I do have a theory on why it might have the silent failure that it has: I use local (C drive) project (dsp) and workspace (dsw) files which reference source code files which are shared on a network.  For reasons unknown to me, VC++ always puts the classwizard (clw) file on the network with the source code instead of on my local C drive with my project files.  This makes me think it may be possible somebody else is trying to share the CLW file with me, which is resulting in some kind of file-sharing-related error, which causes the shared CLW file to become corrupted.  Is there a way that I can tell VC++ where to put the CLW file?  It always seems to store it with my .rc file for some reason, though it may just be using the current working directory, or something else that I am unaware of...

In the event that the classwizard becomes disabled, is there a way within the VC++ environment to reenable it without closing the workspace and (manually) deleting files?  Some kind of "rebuild class wizard" command or something?  It's so annoying that it just stops working without any error messages, without any obvious method to repair the problem, and without any obvious cause.
0
 
LVL 22

Accepted Solution

by:
CJ_S earned 50 total points
Comment Utility
Not as far as I know...
0
 
LVL 1

Author Comment

by:ris
Comment Utility
I was looking for more concrete/definate answers, but given the inactiivity of this question, I figure nobody knows.  Somebody may as well get some points for this though, so here ya go.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now