Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!shelby!neon!hoang From: hoang@Neon.Stanford.EDU (My Khanh Hoang) Newsgroups: comp.windows.ms Subject: Re: MessageBox problem Message-ID: <1990Sep12.043315.10404@Neon.Stanford.EDU> Date: 12 Sep 90 04:33:15 GMT References: <1990Sep9.224303.10981@bdmrrr.bdm.com> <1990Sep11.074217.18928@ciba-geigy.ch> Organization: Computer Science Department, Stanford University Lines: 18 I am the original poster of the problem. I would like to thank all who attempted to help me solve the problem. Regrettably, none of the suggestions help. The casting is taken care of by #include . There was no missing MakeProcInstance or exported name. I even tried to LockData() and made the data segment fixed as Bob Goodearl suggested. I am still waiting for more help! The problem is MessageBox(hDlg, "abc", "xyz", MB_OK) does not display text strings as expected (strings are garbled up). The call is made within a dialog box window procedure. There is no global or local allocation of memory. I did try to increase the stack size in .def file but this did not help. The machine I use is a PS2 80. Windows and SDK are 3.0. By the way, a similar call made outside the dialog box window procedure works MessageBox(hWnd, "abc", "xyz", MB_OK) where hWnd is parent of hDlg.