Results 1 to 2 of 2

Thread: stumped

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    stumped

    I'm stumped. My prog is crashing in the release version but not
    the debug version and I can't figure out the problem.

    I've narrowed it down to one line.

    Code:
    CString strReplace = "";
    CListBox::GetText( nIndex, strReplace );
    After i get strReplace from the ListBox, i cast it to a LPCTSTR
    and send it to a function that expects a LPCTSTR as a parameter.

    For some reason though, it crashes and says the memory can't
    be read. Any ideas?
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471
    nm figured it out
    Bababooey
    Tatatoothy
    Mamamonkey

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