🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1026

Re: Modeless Dialogs vs Globals

#1026
From: James Seidman
Date: Tue, 08 Jan 1991 15:59
20 lines
1229 bytes
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
Technical Details
Message-ID: <6491@hsv3.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!indetech!vsi1!hsv3!jls
References: <1488@msa3b.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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