Memory Model (Large-Huge)
Praveen -- msa3431@msbg.med.ge.com Monday, August 19, 1996 .int mfc-l@netcom.com Hi, Environment : MS Windows 3.1 and Visual C++ 1.50 I have changed the memory model of my application from LARGE to HUGE. I have used Options/Project/Compiler/Memory Model/Model menu option to change it. But when i build the application it gives a compile time error C:\MSVC\MFC\INCLUDE\AFX.H(238) : error C2825: first formal parameter for huge form of 'operator new' must be 'unsigned long' C:\MSVC\MFC\INCLUDE\AFX.H(238) : error C2832: 'huge' form of 'operator new' cannot be a member. It wants me to add __huge before the new statement in the AFX.H file. I don't think i can make the change to AFX.H file. Can anyone help me in this regard. Any help will be APPRECIATED. Thanks Praveen
pjn -- pjn@indigo.ie Tuesday, September 03, 1996 On Mon, 19 Aug 1996 10:19:51 -0500, you wrote: > .int mfc-l@netcom.com > > Hi, > > Environment : MS Windows 3.1 and Visual C++ 1.50 > > I have changed the memory model of my application from LARGE to HUGE. I have > used Options/Project/Compiler/Memory Model/Model menu option to change it. But > when i build the application it gives a compile time error > > C:\MSVC\MFC\INCLUDE\AFX.H(238) : error C2825: first formal parameter for huge > form of 'operator new' must be 'unsigned long' > > C:\MSVC\MFC\INCLUDE\AFX.H(238) : error C2832: 'huge' form of 'operator new' > cannot be a member. > > It wants me to add __huge before the new statement in the AFX.H file. I don't > think i can make the change to AFX.H file. > > Can anyone help me in this regard. > > Any help will be APPRECIATED. > > Thanks > Praveen > > In the 16 bit world MFC does not support the huge memory model. ''' @ @ +========================ooO-(_)-Ooo=================================+ | PJ Naughter | | | | Software Developer Email: pjn@indigo.ie | | Softech Telecom Tel: +353-1-2958384 | | Fax: +353-1-2956290 | | Author of DTime - A Collection URL: http://indigo.ie/~pjn | | of Date & Time classes for MFC | | | | Addr: 7 Woodford, Brewery Road, Blackrock, | | Co. Dublin, Republic of Ireland | +====================================================================+
| Вернуться в корень Архива |