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