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

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


ClassWizard Add Member Variable Bug??

root -- nick@denizen.demon.co.uk
Friday, April 12, 1996

Hi,

Environment: VC4.0 NT/95

Has anyone come across a bug, or a solution, when ClassWizard fails to =
list the control IDs of dialog controls in its Member Variables tab? I =
frequently suffer from this problem even after generating a dialog based =
app with AppWizard, and doing nothing but adding an edit box and going =
to ClassWizard.

Any help or suggestions would be much appreciated.

Regards
Nick.




Olivier Jousset -- OJousset@aglae
Tuesday, April 16, 1996

[Mini-digest: 8 responses]

>Environment: VC4.0 NT/95
>
>Has anyone come across a bug, or a solution, when ClassWizard fails to =
>list the control IDs of dialog controls in its Member Variables tab? I =
>frequently suffer from this problem even after generating a dialog based =
>app with AppWizard, and doing nothing but adding an edit box and going =
>to ClassWizard.
>
>Any help or suggestions would be much appreciated.

Hi,
Have you resources with some languages (english (us), french ..) ?
In this case you must have the same resource in the same language than your
system's language.

Your source's file are read-only or not ?

Best regards.
Olivier Jousset
E-mail adress : OJousset@jouve.fr

-----From: Mats Manhav 

I too have this problem.

Environment: VC4.1 NT

I have created a Dialog based app. After editing the dialog template the
message map property page holds all the proper IDs, but the member variable
holds IDCANCEL and IDOK. (And I removed the Ok button).
The project was created with 4.0. I tried also with creating it in 4.1, but
no difference.

I also tried it on an SDI app created in 4.1 with the same result.
I would like a fix for this quickly.

Mats

-----From: "Webster, Mark" 

     Nick,
     
     The problem is based on the language selected for the dialog.  The 
     language MUST be the same as the language which your machine has been 
     setup to use.
     
     To solve this problem click on your resources tab.  Within resources 
     select the properties of your dialog.  Change the language to your 
     installed language.  Hey presto your controls are now wired and you 
     can create member variables / functions.
     
     Regards,
     
     Mark Webster
     
     email: mwebster@crossaig.co.uk
     url: http://www.crossaig.co.uk


-----From: vpalani@harbinger.net (Venkat Palani)

This happens normally when you use source control and the corresponding =
files are read-only or if it thinks it is read-only. Make sure the =
files(header and implementaion files] are writeable. The classwizard =
also gives you this info in the dialog like this(sample.h[read-only]) if =
you have noticed.

-----From: "Cunningham, Graham" 

Hi,
check your resources are in the correct language.
I have had similar probs when appwizard generates a German app but my win=
dows NT is setup for swiss German.


Graham Cunningham=20
email         : Cunningham@tgd.swissptt.ch
phone       : 00 41 31 338 0633

-----From: John Howard Robertson 

Nick,=20
I have encountered a similar problem.  I'm not sure if this is a bug or =
intentional.  It occurs especially when using accelerators.

I have found that if I want to work with a variable, I always pull up =
the corresponding dialog or accelerator table that contains the =
variable.  This seems to work.

Just trying to help out,
	John Howard Robertson
	jrobert@howard-ind.com

-----From: "Grant Shirreffs (Great Elk)" 

Yes.  This appears to be a 'feature' to do with multi-lingual resources.   
 When I create a project using AppWizard it gets created as 'US English'.   
 However the resource editor creates new resources in my national   
language set (NZ English), and the control IDs in NZ English dialogs are   
not visible in the Class Wizard.  When I change the language of the   
resource to US English, everything then works fine.

Hope this helps

Grant Shirreffs
grant.s@greatelk.co.nz

-----From: Mads_G._Houmann@olicom.dk

I met the same bug yesterday. As far as I can see the ClassWizard Member 
Variables tab doesn't work when you add a language comment to the resource ID
, e.g., IDD_MYDIALOG [English (U.S.)]. If this comment is not present it works 
fine. 

-
Mads Houmann





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