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

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


Class Wizard problem

John Pucci -- JPucci@mail.sanjuan.edu
Monday, May 20, 1996

Visual C++ version 4.0/Windows NT 3.51 with New Shell Interface.

I seem to be having a problem similar to 13.7.3 in FAQ 4.  I have created a
dialog box, but not all of my controls appear on the Member variable
screen.  They all appear on the messagemap screen so this hasn't been
a killer, I can use GetDlgItem and the methods for the control to do what I
need to in the dialog box, but not being able to create variables means
that I have to remember to handle those controls differently.  Unlike the
problem specified in 13.7.3, some of the controls in addition to IDOK and
IDCANCEL do appear and work normally.  Also I am not using the
international version of VC++ so I can't check the fix suggested in the
FAQ.

I have tried to re-create the dialog box, but had the same problem.  It
seems like it is associated with the number of items in the dialog.  If I
create a dialog with only 4 or 5 controls, all of them appear in the member
variable window.  However when I get over that (6 to 10) sometimes I
am missing one.  By the time I get to 15 controls, at least one will always
be missing.  The strange thing is it isn't always the last item added that is
missing.  Often, an item that appeared on a earlier version of the dialog
will disappear.

I guess what I would really like to know is if this is a known problem, and
is there a fix.

Thanks for your interest.




Steve Dunn -- steved@globalnet.co.uk
Tuesday, May 21, 1996

[Mini-digest: 4 responses]

John Pucci wrote:
> 
> Visual C++ version 4.0/Windows NT 3.51 with New Shell Interface.
> 
> I seem to be having a problem similar to 13.7.3 in FAQ 4.  I have created a
> dialog box, but not all of my controls appear on the Member variable
> screen.  They all appear on the messagemap screen so this hasn't been
> a killer, I can use GetDlgItem and the methods for the control to do what I
> need to in the dialog box, but not being able to create variables means
> that I have to remember to handle those controls differently.  Unlike the
> problem specified in 13.7.3, some of the controls in addition to IDOK and
> IDCANCEL do appear and work normally.  Also I am not using the
> international version of VC++ so I can't check the fix suggested in the
> FAQ.
> 
> I have tried to re-create the dialog box, but had the same problem.  It
> seems like it is associated with the number of items in the dialog.  If I
> create a dialog with only 4 or 5 controls, all of them appear in the member
> variable window.  However when I get over that (6 to 10) sometimes I
> am missing one.  By the time I get to 15 controls, at least one will always
> be missing.  The strange thing is it isn't always the last item added that is
> missing.  Often, an item that appeared on a earlier version of the dialog
> will disappear.
> 
> I guess what I would really like to know is if this is a known problem, and
> is there a fix.

This sounds to easy to be of any use, but make sure your're country settings in 
the resource editor (right click on the dialog and select properties) match your 
country settings on the computer (took me 2 days to find the info on that one when 
I had a similar problem).
Hope this helps.
-----From: Niels Ull Jacobsen 

Remember, Class Wizard is just a smart code-writer. You can do exactly th=
e=20
same thing yourself by adding the code manually. You could even try addin=
g
it inside the ClassWizard comment delimiters - maybe ClassWizard will=20
recognize them even if it can't add them directly.

I don't have a fix for the problem though.

[...]
Niels Ull Jacobsen, Kr=FCger A/S (nuj@kruger.dk)
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger grou=
p
and should be taken as legally binding in every respect. Pigs will grow
wings and fly.

-----From: David Nicholson <100143.3716@CompuServe.COM>

I had a problem that no member variables appeared in Class Wizard.  I found out
that the language of the resource file (set in App Wizard) must match the
language in Control Panel International settings.

I had English (UK) in Control Panel and English (US) in resources.  When I
changed Control Panel to English (US) everything was fine.

This may not be your problem, but it is about Control Panel settings rather than
about an international version of VC++.  Also it is easy to check.

David.

-----From: John Pucci 

Thanks David for your response.  The problem you seem to have had is
the same as  13.7.3 in FAQ 4.  I have tried making that correction, but it
seems to have no effect.  I tried changing from US English to Finnish,
recompiled (caused a rebuild of resources), and stopped and restarted
VC++.  This had no effect on the problem.

>>> David Nicholson <100143.3716@CompuServe.COM> 05/22/96
03:03am >>>
I had a problem that no member variables appeared in Class Wizard.  I
found out that the language of the resource file (set in App Wizard) must
match the language in Control Panel International settings.

I had English (UK) in Control Panel and English (US) in resources.  When I
changed Control Panel to English (US) everything was fine.

This may not be your problem, but it is about Control Panel settings rather
than about an international version of VC++.  Also it is easy to check.

David.







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