Visual C++

Moderators: Lundin
Number of threads: 373
Number of posts: 687

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem with "UpdateData()" Fn Posted by nutty boy on 11 Nov 2008 at 3:22 PM
Hi Guys
I'm working on MS Visual Studio 2008 on operating system vista(SP1) ultimate and i have a problem with "UpdateData()" Fn

when i make simple application 0ne button and one edit box
the edit box has a int variable m_INT_ED,it's suppose that when i press the button it display anumber 10 in the edit box and my code is

void CTestDlg::OnBnClickedButton1()
{
// TODO: Add your control notification handler code here
m_INT_ED=10;
UpdateData(false);


but when i run the application and press the button there's no any response and i tried my code on windows xp and ms visual studio 2008 i found the same problem.
Any one have suggestion pls
Report
Re: Problem with "UpdateData()" Fn Posted by AsmGuru62 on 12 Nov 2008 at 4:53 AM
: Hi Guys
: I'm working on MS Visual Studio 2008 on operating system vista(SP1)
: ultimate and i have a problem with "UpdateData()" Fn
:
: when i make simple application 0ne button and one edit box
: the edit box has a int variable m_INT_ED,it's suppose that when i
: press the button it display anumber 10 in the edit box and my code is
:
: void CTestDlg::OnBnClickedButton1()
: {
: // TODO: Add your control notification handler code here
: m_INT_ED=10;
: UpdateData(false);

:
: but when i run the application and press the button there's no any
: response and i tried my code on windows xp and ms visual studio 2008
: i found the same problem.
: Any one have suggestion pls

Can you post the whole dialog code?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.