home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4177 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!magna!doc
  3. From: doc@magna.com (Matthew J. D'Errico)
  4. Subject: Desprately need help with 3.0 Global in DLL !
  5. Message-ID: <Bz5or9.DH@magna.com>
  6. Organization: Magna Software Corporation
  7. Date: Sat, 12 Dec 1992 17:04:20 GMT
  8. Lines: 22
  9.  
  10. I've got a DLL in which I have some global variables allocated using
  11. GlobalAlloc(GHND) [and I've also tried GPTR]...  There are only 5
  12. source modules in the DLL and only 3 of them use the globals.  They
  13. are initialized in the source containing LibMain(), and allocated in
  14. a second module where some data is copied into them.
  15.  
  16. The problem comes into play when I try to access them in the third
  17. module...  I looks like they're empty !  I should point out that this
  18. is working fine in Windows 3.1...  The problem only appears in 3.0
  19. (which I *have* to support)...
  20.  
  21. I'm using MSC 7.0.1 (w/the patches), and Win 3.1 SDK...  The Globals
  22. are basically LPSTR's which (as I said above) are then GlobalAlloc'ed
  23. and GlobalLock'ed...
  24.  
  25. Anyone seen this before ?  Any ideas ?
  26.  
  27. I'm desparate and at a deadline   Please email with ANY ideas !
  28.  
  29. Thanx and regards --
  30.  
  31. -- Doc
  32.