Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!indetech!vsi1!hsv3!jls From: jls@hsv3.UUCP (James Seidman) Newsgroups: comp.windows.ms.programmer Subject: Re: Modeless Dialogs vs Globals Message-ID: <6491@hsv3.UUCP> Date: 8 Jan 91 15:59:30 GMT References: <1488@msa3b.UUCP> Reply-To: jls@hsv3.UUCP (James Seidman) Organization: Video Seven / Headland Technology Lines: 20 In article <1488@msa3b.UUCP> kevin@msa3b.UUCP (Kevin P. Kleinfelter) writes: >It appears that the dialog procedure for a modeless dialog cannot >access ANY global data. This would include literal strings, because >they go into the program's global data area. > >For example, > MessageBox (NULL, (LPSTR) "Literal", NULL, MB_OK); Silly question: Did you remember to export your dialog procedure? If not, it's possible that when it gets called the value for DS is incorrect. (Incidentally, I can access global data from modeless dialog procedures without any problem.) -- Jim Seidman (Drax), the accidental engineer. "It doesn't have to work... they'll be paralyzed just from laughing at me." - Dr. Who, _Shada_ UUCP: ames!vsi1!hsv3!jls INTERNET: hsv3.UUCP!jls@apple.com