Path: 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: 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 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)? --====--