Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786 From: mms00786@uxa.cso.uiuc.edu Newsgroups: comp.windows.ms Subject: Re: __ahincr Message-ID: <118500044@uxa.cso.uiuc.edu> Date: 18 Jul 90 04:37:00 GMT References: <6887@umd5.umd.edu> Lines: 21 Nf-ID: #R:umd5.umd.edu:6887:uxa.cso.uiuc.edu:118500044:000:638 Nf-From: uxa.cso.uiuc.edu!mms00786 Jul 17 23:37:00 1990 Can someone please clarify the following : Under enhanced and standard mode, I am now allowed to GlobalAlloc chunks greater than 64K. I assume I am also able to GlobalLock these large chunks. Question is, how do I access this memory? For example, suppose I wanted to create a memory chunk filled with letter 'a', would the following work? hMem = GlobalAlloc (GMEM_MOVEABLE | GMEM_ZEROINIT, 70000); lpStr = GlobalLock (hMem); for (i=0; i < 70000; i++) *lpStr++ = 'a'; /* what a useful code segment! */ Or would I have to worry about segment boundaries etc, possibly through the use of this mysterious _ahincr? Milan .