Solved

MSDEV: ClassWizard often stops working

Posted on 2001-07-24
5
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This is about my first experience with programming Arduino.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

630 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