Adding member variable to dialog

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
 
M

Martin Richter [MVP]

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!
 
G

Guest

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.
 
M

Martin Richter [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top