home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / programm / win32 / 798 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!eurologic.fido.de!Martin_Schloeter
  2. Date: Wed,  2 Sep 92 10:06:59 +0200
  3. From: Martin_Schloeter@eurologic.fido.de (Martin Schloeter)
  4. Subject: Re: NT, 3.1, and Global Memory
  5. Message-ID: <199bb4a9@p3.f67.n245.z2.fidonet.org>
  6. Newsgroups: comp.os.ms-windows.programmer.win32
  7. X-Comment-To: (Robert Baruch)
  8. Organization: Die ersten 100.000 Jahre... 
  9. Lines: 26
  10.  
  11. RB> After reading countless paragraphs on how Windows supports only
  12. RB> a few means of data transfer between applications, I have come to
  13. RB> the conclusion that if I didn't want to use DDE, I could use a DLL,
  14. RB> and GlobalAlloc memory which could then be shared between
  15. RB> all the applications using that DLL.
  16. RB> 
  17. RB> My questions are:
  18. RB> 
  19. RB> (1)  If I GlobalAlloc in the DLL, and get a handle using one application,
  20. RB>      then another application accesses this handle, will I get the data
  21. RB> from
  22. RB>      the first application UNDER WINDOWS NT?  I know that it works
  23. RB>     under Windows 3.1.
  24. Under 3.1 it works only with memory with the attribute GMEM_DDESHARE!
  25. Regarding the existing informations it will definitly _not_ work with NT. The 
  26. API calls DDEPostMessage and similiar do some magic, which allows to transfer 
  27. data between NT apps. Simple DDEShare-memory will not work.
  28. RB> (2)  Are global variables declared in a DLL shareable between
  29. RB>      applications under Windows NT?  Again, I know it works under 3.1
  30. No.
  31. RB> (3)  If a DLL enters a message loop on behalf of an application, will
  32. RB>      that message loop receive messages posted to the application
  33. RB>      properly under NT?  Once again, it works under 3.1.
  34. Don't know, have to test it.
  35.  
  36. Martin
  37.