home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7248 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u37127
  2. Organization: University of Illinois at Chicago
  3. Date: Wednesday, 30 Dec 1992 15:37:01 CST
  4. From: <U37127@uicvm.uic.edu>
  5. Message-ID: <92365.153701U37127@uicvm.uic.edu>
  6. Newsgroups: comp.os.os2.programmer
  7. Subject: Dialogs + Threads = Problems. Help!
  8. Lines: 27
  9.  
  10. Hello all,
  11.  
  12.   I have been having some weird PM problems that I was hoping someone could
  13.   shed some light on.  Basically the problem is that if I start a thread
  14.   from a dialog, and then from within the thread try to send messages to
  15.   the dialog items, or set DlgItemText, the calls fail.  I have not omitted
  16.   the all important step of getting a PM anchor block handle for each thread.
  17.  
  18.   The two specific cases I have noticed are, WinSendMsg fails, while
  19.   WinPostMsg succeeds;  WinSetDlgItemtext fails, as does WinSetWindowText.
  20.  
  21.   All my dialogs are loaded and started with WinDlgBox, with the owner
  22.   handle set to NULL, so as to make them non-modal.  The msg processing
  23.   calls in main are the standard wingetmsg and windispatchmsg.
  24.  
  25.   I havent been able to find any special requirements in the docs
  26.   for interaction of threads with dialog items, other than the general
  27.   requirement of an anchor block handle.  If you know of any
  28.   special requirements or know where I might be screwing up, please
  29.   E-Mail me.
  30.  
  31.   Thank you,
  32.  
  33. Satish Movva
  34. Small Systems Group                            Bitnet: U37127@UICVM
  35. Academic Computer Center                     Internet: u37127@uicvm.uic.edu
  36. University of Illinois at Chicago                      satish@satish.cc.uic.edu
  37.