473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Adding member variable to dialog

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
Nov 17 '05 #1
3 1584
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!

--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com
Nov 17 '05 #2
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.

"Martin Richter [MVP]" wrote:
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!

--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com

Nov 17 '05 #3
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.

--
Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: prettysmurfed | last post by:
Hi all I have a bit of a problem, the subject of this post is almost selfexplaing. But here goes: Heres an example of the code I want to implement, its all nice and simple, but the flaw is I...
2
by: cppaddict | last post by:
Hi, I have the following line inside one of my class member functions: static bool tested = false; if (!tested) { MessageBox(NULL, "Hi", "Testing", MB_OK | MB_ICONEXCLAMATION); tested =...
5
by: surrealtrauma | last post by:
the requirement is : Create a class called Rational (rational.h) for performing arithmetic with fractions. Write a program to test your class. Use Integer variables to represent the private data...
0
by: Mark Sicignano | last post by:
I found the reason for at least one of the script bugs that appear in the Add Member Variable Wizard. This is a followup to a 9-month old article. Dave V said: > An error has occurred in the...
1
by: Larry | last post by:
Hi my friends, I'm chaning from VC 6 to VC.net. It's easy to add member variable for a control in dialog box class. But when I want to delete it. I have to go to 3 places 1. Variable...
2
by: Viorel | last post by:
Adding new row with default values. In order to insert programmatically a new row into a database table, without direct "INSERT INTO" SQL statement, I use the well-known DataTable.NewRow,...
0
by: Desmond Bean | last post by:
I have an application with MFC extension DLL's with dialog's both in the main app and in the DLL's. Apart from care in the resource Id specification it works fine using classwizard in Vc 6, allowing...
3
by: tom | last post by:
How to get access to veriable from static class member? class cTest { public: int a; void Set_a(){a = 1;} static int dlgTest()
11
by: radders | last post by:
I've just started working through Sams publishing's "Teach yourself Visual C++ 4 in 21 days", using VC++ version 4.0 on a windows xp machine. My problem occurs when I attempt to add member variables...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.