Solved

MSDEV: ClassWizard often stops working

Posted on 2001-07-24
5
247 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
ID: 6315532
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
ID: 6316226
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
ID: 6317590
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
ID: 6317622
Not as far as I know...
0
 
LVL 1

Author Comment

by:ris
ID: 6349858
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

18 Experts available now in Live!

Get 1:1 Help Now