Adding member variable to dialog

  • Thread starter Thread starter PawelSokolowski
  • Start date Start date
P

PawelSokolowski

Hi all,

I have just switched from VC++ 6.0 to .NET and I am a bit confused.
I am very upset that Class Wizard is gone.
I am trying to add member variables to my dialog class.
When I add control variables, it's working ok, but when I add a variable for
storing data, it does not create DDX_Control call for this variable.
Anybody knows why ???

Regards
PawelS
 
Hallo Pawel!
I have just switched from VC++ 6.0 to .NET and I am a bit confused.
I am very upset that Class Wizard is gone.

You are not alone.
I am trying to add member variables to my dialog class.
When I add control variables, it's working ok, but when I add a variable for
storing data, it does not create DDX_Control call for this variable.

In the new dialog you have to check the check box "Control variable" to
do this!
 
Does anyone know how to do this when using a resource only DLL? The Control
Variable check box is greyed out and i have not been able to figure out how
to get it enabled.
 
Hallo Joe!
Does anyone know how to do this when using a resource only DLL? The Control
Variable check box is greyed out and i have not been able to figure out how
to get it enabled.

So you have a project with a RC file that doesn't contain the templates
that are finally used.
My trick is always to include the main-language rc file into the
project. Even for a compile I set AFX_RESOURCE_DLL in the defines
section. This causes all resources to be excluded from the build.

Than I have a second project with the same RC file and the proper
language code set.

So the IDE has its RC file for the project that it needs.
 
Back
Top