15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


ClassWizard question

goberman -- goberman@bis.co.il
Monday, July 08, 1996

 In VC++ 1.52 application I transfered for convenience the bodies of some
member functions of one class to the new  *.cpp file(they were too long).
ClassWizard does not give me access to these functions  from "Member Functions"
listbox to edit them. 
 Has anybody any solution for this problem?
 Arie Goberman.
 Jerusalem.




John Lundy -- jlundy@iadfw.net
Thursday, July 11, 1996

[Mini-digest: 2 responses]

At 01:32 PM 7/8/96 +0200, you wrote:
> In VC++ 1.52 application I transfered for convenience the bodies of some
>member functions of one class to the new  *.cpp file(they were too long).
>ClassWizard does not give me access to these functions  from "Member Functions"
>listbox to edit them. 
> Has anybody any solution for this problem?
> Arie Goberman.
> Jerusalem.

You will need to delete the .CLW file from the root directory of your
project and run ClassWizard. It will popup a dialog about recreating the
.CLW file. Tell it to go ahead. It will give you a second dialog to pick the
files that are in your project. Pick the .CPP and .H/.HPP files it should
use. It will recreate your .CLW file and your new classes will then be visible.

John Lundy
====================================================
John Lundy, Windows (16/32 bit) Software Developer
At Home Entertainment
Specializing in GUI, Multimedia and Game Development
====================================================

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzEjXTAAAAEEAMEhmrYJUYivDtyoFSjgDGpYVkOvFd7ycGZ7VE8lNWJiSqhd
VMhcL3Cs/8EkToYC5FDzKk043S6tnYDl2M8Fed7TuEPlHFG/VwB05H6jxw0z5UPE
Cex93oZNgjtmqCgR1ZdSe7m4q/A5xX1jjjpQjA3V8nZlPC25slPM/tF5FKiRAAUR
tCBKb2huIEMuIEx1bmR5IDxqbHVuZHlAaWFkZncubmV0Pg==
=GbKQ
-----END PGP PUBLIC KEY BLOCK-----

-----From: "Stracka" 

 I was under the impression that ClassWizard kept track of one *.H and one *.CPP 
 file for each class in its database; if there is a "One Header, One Source" 
 limit, then moving some functions to another source file would indeed cut them 
 off from the "Member Functions" method of access.
 
 Also, I'm not one to try and tell you how to write your code, but wouldn't it 
 be preferable to leave all of the source for a given class in one file?  This 
 would mesh more properly with the object-oriented paradigm, and it would just 
 plain make more sense than spreading the functions across different files.  
 That's just my opinion, though, and should be taken or left as you see fit.
 
 -Mark Stracka
  Distributed Processing Technology




| Вернуться в корень Архива |