Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!cunixf.cc.columbia.edu!stephenc From: stephenc@cunixf.cc.columbia.edu (Stephen Chung) Newsgroups: comp.windows.ms.programmer Subject: Compiling under the Medium model Message-ID: <1991Jun18.222933.30574@cunixf.cc.columbia.edu> Date: 18 Jun 91 22:29:33 GMT Organization: Columbia University Lines: 16 Hi NetLanders, I have another problem. When I compiled a program in the small model, it all worked. When I compiled it under the medium model, it seems that all initialized data is gone. For example: char AppName[] = "Test"; wndclass.lpszClassName = AppName; will work in the small model, but not in the medium model. In the medium model, lpszClassName will still point to the address of AppName, but the address of AppName will not contain the string "Test". It will contain garbage. Any ideas? I am using BC++. - Stephen