锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久超碰97人人做人人爱,热综合一本伊人久久精品,一级做a爰片久久毛片看看http://www.shnenglu.com/Panda/category/11684.htmlzh-cnTue, 08 Sep 2009 15:43:28 GMTTue, 08 Sep 2009 15:43:28 GMT60HeapAlloc GlobalAlloc new絳夊唴瀛樺垎閰嶇殑鍖哄埆http://www.shnenglu.com/Panda/archive/2009/09/06/95435.htmlChinaPandaChinaPandaSun, 06 Sep 2009 13:50:00 GMThttp://www.shnenglu.com/Panda/archive/2009/09/06/95435.htmlhttp://www.shnenglu.com/Panda/comments/95435.htmlhttp://www.shnenglu.com/Panda/archive/2009/09/06/95435.html#Feedback0http://www.shnenglu.com/Panda/comments/commentRss/95435.htmlhttp://www.shnenglu.com/Panda/services/trackbacks/95435.html

GlobalAlloc鏄爣鍑嗗唴瀛樼鐞嗗嚱鏁幫紝鏍囧噯鍐呭瓨綆$悊鍑芥暟閮芥槸鎿嶄綔榪涚▼鐨勯粯璁ゅ爢錛屾墍浠ヨ繖涓嚱鏁版槸浠庤繘紼嬬殑榛樿鍫嗕腑鍒嗛厤鍐呭瓨絀洪棿錛屽垎閰嶇殑絀洪棿鍙互鏄彲縐誨姩鐨勪篃鍙互鏄笉鍙Щ鍔ㄧ殑銆傚彲縐誨姩鐨勫唴瀛樻槸鎸嘩indows鍦ㄩ渶瑕佺殑鏃跺欏彲浠ュ皢榪欎釜鍐呭瓨縐誨姩鍒板彟澶栦竴涓湴鍧.

 

鍏充簬GlobalAlloc and LocalAlloc,from MSDN  
   
  The global and local functions supported for porting from 16-bit code, or maintaining source code compatibility with 16-bit Windows. The global and local functions are slower   than other memory management functions and do not provide as many features. Therefore,  new   applications should use the heap functions.However, the global functions are still used with DDE and the clipboard functions.  
   
  Windows memory management does not provide a separate local heap and global heap, as 16-bit Windows does. As a result, there is no difference between the memory objects allocated by the GlobalAlloc and LocalAlloc functions. In addition, the change from a 16-bit segmented memory model to a 32-bit virtual memory model has made some of the related global and local functions and their options unnecessary or meaningless. For example, there are no longer near and far pointers, because both local and global allocations return 32-bit virtual addresses.
 
  Memory objects allocated by GlobalAlloc and LocalAlloc are in private, committed pages with read/write access that cannot be accessed by other processes. Memory allocated by using GlobalAlloc with GMEM_DDESHARE is not actually shared globally as it is in 16-bit Windows. This value has no effect and is available only for compatibility. Applications requiring shared memory for other purposes must use file-mapping objects. Multiple processes can map a view of the same file-mapping object to provide named shared memory. For more information, see File Mapping.

HeapAllock鏄爢綆$悊鍑芥暟錛屽爢綆$悊鍑芥暟鍙互鎿嶄綔闈為粯璁ゅ爢錛堝綋鐒朵篃鍙互鎿嶄綔榛樿鍫嗭級錛屽垱寤轟竴涓爢鏄敤HeapCreate錛岃繖涓嚱鏁拌繑鍥炰竴涓爢鍙? 鏌勶紝鐒跺悗鍙互鐢ㄥ湪HeapAllock鍑芥暟涓紝鍗充粠榪斿洖鐨勮繖涓爢涓敵璇峰唴瀛樼┖闂達紝HeapAllock鐢寵鐨勫唴瀛樺彧鑳芥槸涓嶅彲浠ョЩ鍔ㄧ殑.

鑰宯ew鍒欐槸c++鐨勬爣鍑嗗嚱鏁幫紝鍦╓indows鐨刅C++緙栬瘧鍣ㄤ腑錛宯ew鍦ㄧ敵璇峰唴瀛樻椂鏈緇堣皟鐢ㄧ殑鏄疓labalAlloc錛屼笉榪噉ew榪樺彲浠ヨ皟鐢ㄧ被鐨勬瀯閫犲嚱鏁?

Windows鐨勫唴瀛樼鐞嗛櫎浜嗘爣鍑嗗唴瀛樼鐞嗗嚱鏁板拰鍫嗙鐞嗗嚱鏁頒箣澶栵紝榪樻湁鏇村姞搴曞眰鐨勮櫄鎷熷唴瀛樼鐞嗗嚱鏁幫紝VirtualAlloc灝辨槸涓涓櫄鎷熷唴瀛樼鐞嗗嚱鏁?

 

Personal Comprehension

GlobalAlloc鍒嗛厤鐨勫唴瀛?榪樺彲浠ヨ皟鐢℅lobalLock閿佸畾璇ュ唴瀛樺潡(璇ュ嚱鏁板彲浠ヨ澶氭璋冪敤),鍦ㄦ垜浠病鏈夎皟鐢℅lobalUnlock涔? 鍓?璇ュ唴瀛樺潡浼氫竴鐩翠繚鎸佹湁鏁?鍗充嬌璋冪敤浜咷lobalFree鍑芥暟,浣嗗鏋滆鍐呭瓨鐨勯攣璁℃暟涓嶄負0,璇ュ唴瀛樺潡涔熶笉浼氳閲婃斁鎺?渚濈劧淇濇寔鏈夋晥)!鑰屽鏋滃彧璋冪敤 涓嬈elete,鍒欎嬌鐢╪ew鎵鍒嗛厤鐨勫唴瀛樺氨浼氳閲婃斁鎺?



]]>
三级片免费观看久久| 国产精品免费福利久久| 久久强奷乱码老熟女| 99久久这里只精品国产免费 | 久久亚洲sm情趣捆绑调教| 成人久久免费网站| 精品久久久久久国产三级| 久久人做人爽一区二区三区| 91精品国产色综合久久| 日本亚洲色大成网站WWW久久 | 久久大香香蕉国产| 久久久久久亚洲精品不卡 | 97久久精品人人做人人爽| 久久久亚洲欧洲日产国码是AV| 国产精品久久久久无码av| 久久亚洲国产成人影院| 伊人色综合久久天天| 色偷偷88888欧美精品久久久| 久久久无码精品亚洲日韩软件| 久久久久久人妻无码| 思思久久99热只有频精品66| 久久久99精品成人片中文字幕 | 久久久综合九色合综国产| 亚洲精品无码久久久久sm| 亚洲国产视频久久| 久久久久无码精品| 久久国产成人| 久久精品夜色噜噜亚洲A∨| 亚洲狠狠久久综合一区77777| 99久久777色| 日韩精品国产自在久久现线拍| 狠狠色婷婷久久一区二区三区| 亚洲AV无码久久精品色欲| 亚洲精品蜜桃久久久久久| 中文字幕久久久久人妻| AV无码久久久久不卡蜜桃| 婷婷伊人久久大香线蕉AV | 久久免费视频观看| 亚洲国产成人久久综合一| 国产ww久久久久久久久久| 国产福利电影一区二区三区久久老子无码午夜伦不|