Article View: comp.windows.ms.programmer
Article #3207<None>
From: Max E. Metral
Date: Wed, 12 Jun 1991 16:00
Date: Wed, 12 Jun 1991 16:00
39 lines
1241 bytes
1241 bytes
MY QUESTION: > >I am trying to call MessageBox() from a Dialog Box. If I call >it with MB(hDlg, (LPSTR) "No filename specified", NULL, MB...); > >the string is not displayed, and junk is in it's place, and memory >is cold screwed up. > >If I call it with a string used elsewhere in the program, defined at the >top as: > static char DefSpec[10] = "*.*"; > >It works. > >But if I define my own: > static char Err[100] = "Yo mama"; > >I get the same error. > >Any clues?????? THE ANSWER: You did export your dialog box proc, right? 9.998 times out of 10, this is what it is. MAKE THAT 9.999 out of 10.... THE STUD: Aaron Wallace Thanks a million. Can someone explain why this happens (at a somewhat low level)? --==<Max Metral>==--
Technical Details
Message-ID:
<1991Jun12.160037.15378@athena.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!csus.edu!decwrl!deccrl!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!memetralShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!csus.edu!decwrl!deccrl!bloom-beacon!bloom-picayune.mit.edu!athena.mit.edu!memetral From: memetral@athena.mit.edu (Max E. Metral) Newsgroups: comp.windows.ms.programmer Subject: <None> Message-ID: <1991Jun12.160037.15378@athena.mit.edu> Date: 12 Jun 91 16:00:37 GMT Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 39