CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2002
    Posts
    56

    UpdateData not working in vc++.net

    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

  2. #2
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    Haven´t discovered any difficulties.Post some
    code.

  3. #3
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    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.

  4. #4
    Join Date
    Jul 2002
    Posts
    56
    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.
    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?

  5. #5
    Join Date
    Mar 2002
    Location
    Sweden
    Posts
    136
    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.

  6. #6
    Join Date
    Nov 2002
    Location
    Poland
    Posts
    27
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured