Win32 Editboxs bleeding into each other?

This is a discussion on Win32 Editboxs bleeding into each other? within the Windows Programming forums, part of the Platform Specific Boards category; I'm kinda new to win32 stuff. I made a window and some editbox windows for a login for my program. ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    6

    Win32 Editboxs bleeding into each other?

    I'm kinda new to win32 stuff. I made a window and some editbox windows for a login for my program. But after I use the button to login, every window I popup with editboxes after that contain the information from that initial login windows last editbox. Anyone know what might cause this?

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Move (and post your relevant code).
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Sounds like you don't clear the editbox, or perhaps you have a buffer overrun (somewhat less likely).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    6
    Hmm it'd be quite a bit of code to put up. basically its just making a window, slapping two editboxes, allocating a couple bits of memory to put the text from the editboxes in and then killing the window.

    Then when I create a completely different window of a different class type with completely different editboxes I get the text in both editboxes from the first box in the other window. And theres really no connection between the two. I guess it's a buffer thing somewheres.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 11:46 AM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  3. Win32 Thread Object Model Revisted
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 12-15-2004, 07:50 AM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  5. Thread Synchronization :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-09-2002, 09:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21