home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1779 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.7 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!jvnc.net!nuscc!twchan
  3. From: twchan%Solomon.Technet.sg (Chan Tur Wei)
  4. Subject: Qns abt drag/drop & GlobalUnlock
  5. Message-ID: <1992Sep11.052535.1107@nuscc.nus.sg>
  6. Sender: usenet@nuscc.nus.sg
  7. Organization: National University of Singapore
  8. X-Newsreader: Tin 1.1 PL5
  9. Date: Fri, 11 Sep 1992 05:25:35 GMT
  10. Lines: 35
  11.  
  12.  
  13. Dear netters,
  14.  
  15. I'm posting the questions below on behalf of a friend who's having 
  16. trouble with some Windows programming problem.  Appreciate if someone
  17. could help!
  18.  
  19.     (1) Supporting "Drag" besides "Drop"
  20.  
  21.     An application is said to support Drag-n-Drop if it calls
  22.     DragAcceptFiles() and then processes the WM_DROPFILES message.
  23.     However, strictly speaking this is just the "Drop" feature.  How
  24.     can an application also support the "Drag" feature just like the
  25.     File Manager?  That is, how can an application provides files
  26.     for the user to drag and subsequently drop into another
  27.     application?
  28.  
  29.     (2) Lock and Free Memory problem
  30.  
  31.     When an application calls GlobalUnlock() and receives zero in
  32.     return, it means that the lock count of the memory handle has
  33.     reduced to zero.  However, when the application immediately
  34.     tries to free it, it receives a GP fault saying that the
  35.     application is trying to free a locked memory object.  This
  36.     problem can be worked around by calling another GlobalUnlock()
  37.     before GlobalFree().  Therefore, it seems that when
  38.     GlobalUnlock() returns a zero, it does not necessarily mean that
  39.     the lock count is already decremented to zero.  Is this true?
  40.  
  41. I hope someone can help my friend out here.  Replies by e-mail would
  42. be greatly appreciated!  Thanx in advance.
  43.  
  44.  
  45.   -T.W.Chan-
  46.  
  47.