i can't get UpdateData to work in vc++.net.... both ways don't work.. what am i doing wrong? if i'm doing anything wrongly
Printable View
i can't get UpdateData to work in vc++.net.... both ways don't work.. what am i doing wrong? if i'm doing anything wrongly
Haven“t discovered any difficulties.Post some
code.
Forgot something...
Check DoDataExchange(CDataExchange* pDX)
to see that your control is listed like this
DDX_Control(pDX, IDC_SHOW, m_cShow);
I have had to typed that myself.
thnx... but how come in vc++6.0 i didn't need to do such thing to use updatedata? can it b automated like in vc++6.0?Quote:
Originally posted by Jesper A
Forgot something...
Check DoDataExchange(CDataExchange* pDX)
to see that your control is listed like this
DDX_Control(pDX, IDC_SHOW, m_cShow);
I have had to typed that myself.
If you rightclick in the resource editor on your control
and choose add variable you get the automation.
As long as you add a controlvariable.It wont work
if you uncheck the Control Variable check box.
About the automation in adding member variables of non-control type:
I got answer to this problem in Microsoft's forum. They said that they have added this problem to their bug-database, so we'll have to wait until they will publish some service packs...