CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    33

    Class Wizard wont let me pick a derived base class

    I am trying to use class wizard to generate code for some class which is derived from CPropertyPage. I have exported this class to the gallery, I can see it in the class list, but when I try to generate a new class from the resource, the only thing selections for a base class are the MFC classes. Does anyone know how to fix this??




  2. #2
    Join Date
    May 1999
    Posts
    42

    Re: Class Wizard wont let me pick a derived base class

    I don't have a specific fix for you, but I have accepted what Class Wizard provides, then manually changed the base class, and the next time I went into Class Wizard, it showed the correct base class.


  3. #3
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    The nasty way... ;-)

    Hi !,

    There is a way to do this that works, but is not very clean ( make a copy of the project before try ;-) ).

    Add the resource to the project, add the code, and then close the project, delete the ".clw" file, open again the project and call the class wizard, this will ask to make a new class wizard file, do it, and all Ok... ( you must not forget before do that, is to have all the "languages" of the dialog to the default "language" ( for example I have some problems because sometimes I have some dialogs with "Deutsch(Germany)", and my default is "Deutsch(Switzerland).

    HTH, Bye !
    Braulio


  4. #4
    Join Date
    Apr 1999
    Posts
    33

    Re: The nasty way... ;-)

    Hmmm, I read the article about rebuilding the CLW file, and I have tried that. In your experience this will then let you specify another base class in the create new class dialog?




  5. #5
    Join Date
    Apr 1999
    Posts
    33

    Re: Class Wizard wont let me pick a derived base class

    I had thought about that. I found that there was alot of editing involved in replacing the occurrences of the base class in the source code. I am converting a large number of dialogs, so I wanted this to be as errorless as possible.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured