[comp.windows.ms.programmer] Compiling under the Medium model

stephenc@cunixf.cc.columbia.edu (Stephen Chung) (06/19/91)

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