home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12385 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  1.5 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!chaos!random.ccs.northeastern.edu!steck
  2. From: steck@dworkin.ccs.northeastern.edu (Paul Steckler)
  3. Newsgroups: comp.windows.ms.programmer,comp.lang.c++
  4. Subject: SetDlgItemText() in Borland C++ 2.0
  5. Message-ID: <1992Aug16.045635.18329@random.ccs.northeastern.edu>
  6. Date: 16 Aug 92 04:56:35 GMT
  7. Sender: news@random.ccs.northeastern.edu
  8. Organization: College of Computer Science, Northeastern University
  9. Lines: 30
  10. Originator: steck@dworkin.ccs.northeastern.edu
  11.  
  12. Since I only occasionally use C++, I'm still back at Borland C++
  13. version 2.0.
  14.  
  15. I'm trying to modify the text in an edit control attached to
  16. a dialog box.
  17.  
  18. Instead of seeing the new text, I just get a blank edit 
  19. control.
  20.  
  21. The call I'm making looks like:
  22.  
  23.     SetDlgItemText(hDlg,FILENAME,lpstr);
  24.  
  25. just like in Petzold.  (If I don't make this call, the 
  26. initial text DOES appear - the call blanks it out).
  27.  
  28. Could this be a compiler/library bug?  If not, what might I
  29. be doing wrong?
  30.  
  31. -- Paul
  32.  
  33.  -----------------------------------------------------------------------
  34. | Paul Steckler                       |  Were I Brittania,              |
  35. | steck@dworkin.ccs.northeastern.edu  |    I'd waive the rules ...      |
  36.  -----------------------------------------------------------------------
  37. -- 
  38.  -----------------------------------------------------------------------
  39. | Paul Steckler                       |  Were I Brittania,              |
  40. | steck@dworkin.ccs.northeastern.edu  |    I'd waive the rules ...      |
  41.  -----------------------------------------------------------------------
  42.