Article View: comp.windows.ms.programmer
Article #3196Strange clobberings.
From: Max E. Metral
Date: Tue, 11 Jun 1991 21:04
Date: Tue, 11 Jun 1991 21:04
19 lines
907 bytes
907 bytes
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??????
Technical Details
Message-ID:
<1991Jun11.210451.14087@athena.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!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!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!memetral From: memetral@athena.mit.edu (Max E. Metral) Newsgroups: comp.windows.ms.programmer Subject: Strange clobberings. Message-ID: <1991Jun11.210451.14087@athena.mit.edu> Date: 11 Jun 91 21:04:51 GMT Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 19