锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美大片一区二区,亚洲美女中出,蜜桃av一区二区在线观看http://m.shnenglu.com/SpringSnow/category/8492.html闆寲浜嗭紝鑺卞紑浜嗭紝鏄ュぉ鏉ヤ簡zh-cnTue, 25 Aug 2009 10:50:12 GMTTue, 25 Aug 2009 10:50:12 GMT60鈥滄病鏈夋壘鍒?MSVCR80D.dll鈥濈殑瑙e喅鏂規(guī)硶http://m.shnenglu.com/SpringSnow/archive/2009/08/24/94295.htmlSandySandyMon, 24 Aug 2009 10:41:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/08/24/94295.htmlhttp://m.shnenglu.com/SpringSnow/comments/94295.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/08/24/94295.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/94295.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/94295.html
“娌℃湁鎵懼埌 MSVCR80D.dll,鍥犳榪欎釜紼嬪簭鏈兘鍚姩錛岄噸鏂板畨瑁呭簲鐢ㄧ▼搴忥紝鍙兘浼氫慨澶嶆闂銆?#8221;
鍦╒S2005涓紝緇忓父紕板埌榪欎釜闂錛屾庝箞鍔炲憿錛熸槸鍘葷綉涓婁笅杞戒竴涓猟ll涔堬紵鎴戞病鏈夊皾璇曡繃銆備絾鏄綉涓婃彁渚涚殑涓縐嶆柟娉曟槸榪欐牱鐨勶紝鎴戣寰楁尯綆渚跨殑銆?br>
濡傚浘錛?br>               
  

灝?Use FAT32 Work-around" 璁句負yes灝卞彲浠ヤ簡銆?br>

Sandy 2009-08-24 18:41 鍙戣〃璇勮
]]>
澶氱嚎紼嬬▼搴忎腑鐨勮皟璇?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/08/21/94039.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Fri, 21 Aug 2009 09:19:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/08/21/94039.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/94039.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/08/21/94039.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/94039.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/94039.html</trackback:ping><description><![CDATA[<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浠婂ぉ鐪嬬殑璋冭瘯鐨勮繖涓绔犱富瑕佹槸閽堝澶氱嚎紼嬬▼搴忕殑璋冭瘯銆傚綰跨▼紼嬪簭榪愯鐨勪笉紜畾鎬э紝浣垮叾璋冭瘯璧鋒潵灝卞儚鎶撹澊铦朵竴鏍鳳紝浣犳崏鎽鎬笉閫忓畠椹昏凍鐨勪綅緗?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涔︿腑緇欎簡涓浜涘緩璁拰鏂規(guī)硶錛?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓鏄湁璁″垝鍦板浠橀敊璇?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀵瑰簲鐢ㄧ▼搴忓睍寮閫傚綋鐨勮皟璇曪紝搴旇鏄繙鍦ㄤ綘浣跨敤璋冭瘯鍣ㄤ箣鍓嶅氨寮濮嬩簡銆傚澶氫嬌鐢?/span><span lang=EN-US>ASSERT</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">璋冭瘯鎺柦銆傦紙</span><span lang=EN-US>ASSERT</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鑳屽悗鐨勬蹇墊槸瀹夊叏鍜岄熷害涔嬮棿鐨勪氦鎹€傜▼搴忚繍琛屽洜姝よ繍琛屽緱姣旇緝鎱紝浣嗘槸</span><span lang=EN-US>Debug Build</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勫埗閫犲氨鏄負浜嗚皟璇曪紝鎵浠ュ彲浠ョ悊瑙o級鍦ㄦ瘡涓涓綘鐨勫亣璁句箣澶勫仛媯楠屽伐浣溿傝繘鍏ヤ竴涓嚱鏁版椂錛岀‘璁ゆ墍鏈夌姸鎬併備笉瑕佸彧鏄鏌ユ寚閽堟槸鍚﹀悎娉曪紱濡傛灉鍙兘錛屾鏌ヤ竴涓嬫寚閽堟墍鎸囩殑緇撴瀯涓殑鏁版嵁鏄惁涓鑷淬?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浜屾槸</span><span lang=EN-US>Bench Testing</span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍏跺疄榪欑鏂規(guī)硶灝辨槸鍏堟拠寮澶氱嚎紼嬬殑鐜錛屾祴璇曠▼搴忛昏緫鐨勬紜с傚鏋?/span><span lang=EN-US>OK</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浜嗭紝鐒跺悗鍐嶈冭檻涓庣嚎紼嬬浉鍏崇殑涓滆タ銆?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涓夋槸綰跨▼瀵硅瘽妗?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欓噷涓昏璁ㄨ浜嗗涓涓壒瀹氱殑綰跨▼濡備綍璋冭瘯錛屾柟娉曟槸鎸傝搗鎵鏈夌殑綰跨▼鈥斺旈櫎浜嗘垜浠叧娉ㄧ殑閭d釜銆備功涓粙緇嶇殑鏂規(guī)硶鍦?/span><span lang=EN-US>vs 2005</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴戞病鏈夋壘鍒般?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍥涙槸鏃ュ織璁板綍</span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">榪欓噷涓昏鏄湪鎺у埗鍙扮獥鍙f樉紺轟竴浜涜繍琛屼俊鎭紝鎴戜滑鍙互浣跨敤</span><span lang=EN-US>printf</span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">絳夊嚱鏁板湪鎺у埗鍙拌緭鍑轟竴浜涗俊鎭潵鏌ョ湅綰跨▼鐨勮繍琛屾搴忋?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浜旀槸鍐呭瓨璁板彿</span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浣跨敤鍐呭瓨璁板彿鐨勫ソ澶勫氨鏄檷浣庡郊姝ゅ共鎵扮殑鍙兘鎬с備絾鏄篃瑕佹敞鎰忓畠涓嶆槸鍚屾鎿嶄綔錛屽彲鑳戒細鍥犱負涓や釜綰跨▼鐨勫悓鏃跺啓鍏ュ紩鏉ラ棶棰樸?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍏槸紜歡璋冭瘯瀵勫瓨鍣?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span lang=EN-US><o:p> </o:p></span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍓嶉潰鐨勮繖鍏鏂規(guī)硶鎴戜篃鍙敤榪囦笁縐嶏紝鏈変竴浜涜繕鐪熸槸絎竴嬈¤鍒般備笉榪囦笉鎬曚笅嬈℃悶涓嶅畾闂鐨勬椂鍊欏彲浠ユ嬁鏉ヨ繘琛屽皾璇曪紝鏉ユ姄涓鎶撻殣钘忓湪紼嬪簭涓殑“鑷櫕浠?#8221;銆?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span lang=EN-US><o:p> </o:p></span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎴愬姛娑堥櫎澶氱嚎紼嬬▼搴忕殑“鑷櫕”錛屼綔鑰呰闇瑕佸叿澶囦笁縐嶇礌鍏伙細鍐沖績銆佽愬績銆佸垱閫犲姏銆傚悓鏃朵篃涓嶈铔共錛岃閲囩敤縐戝鐨勬柟娉曪細瑙傚療銆侀嫻嬨佹祴璇曘?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span lang=EN-US><o:p> </o:p></span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鎬葷粨涓涓嬶細鍊熷姪鏂規(guī)硶錛岃瀵熺幇璞★紝澶ц儐棰勬祴錛屽媷鏁㈠皾璇曪紝瀹屽嫻嬭瘯銆?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span lang=EN-US><o:p> </o:p></span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">欏圭洰涓篃紕板埌浜嗗綰跨▼鐨勪嬌鐢ㄣ傛湭鏉ュ彲鑳藉綰跨▼鐨勪嬌鐢ㄤ細瓚婃潵瓚婂錛屼笉鑳藉仠鐣欏湪瀹屾垚鍔熻兘鍜屼換鍔′笂錛屽簲璇ュ鎬濊冨嫻嬭瘯銆傞伩鍏嶅綰跨▼鐨勪笉鍙‘瀹氭у甫鏉ョ殑涓浜涘洶鎵般?/span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span lang=EN-US><o:p> </o:p></span></p> <p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; mso-char-indent-count: 2.0"><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">瀛︿範涔︾睄錛氥?/span><span lang=EN-US>Win32 </span><span style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">澶氱嚎紼嬬▼搴忚璁°嬩警鎹瘋瘧</span></p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/94039.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-08-21 17:19 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/08/21/94039.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞? Windows Mobile涓嬪垱寤篶mwap鎺ュ叆鐐?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/04/21/80610.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 21 Apr 2009 06:54:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/04/21/80610.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/80610.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/04/21/80610.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/80610.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/80610.html</trackback:ping><description><![CDATA[杞? http://tech.ddvip.com/2008-09/122062103760957.html<br><br>紼嬪簭涓鏋滆<nobr oncontextmenu="return false" onmousemove=kwM(1) id=clickeyekey1 onmouseover="kwE(event,1, this)" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick='kwC(event,1,"")' onmouseout=kwL(event,this)>浣跨敤</nobr>http鎴杝ocket榪炴帴鏈嶅姟鍣紝闇瑕佸厛榪炴帴緗戠粶銆侰onnMgrEstablishConnectionSync鍑芥暟涓殑CONNMGR_CONNECTIONINFO鍙傛暟錛屼笉璁洪噰鐢↖ID_DestNetWAP榪樻槸IID_DestNetInternet錛屼技涔庨兘瑕佷緷璧栦簬<nobr oncontextmenu="return false" onmousemove=kwM(0) id=clickeyekey0 onmouseover="kwE(event,0, this)" style="COLOR: #6600ff; BORDER-BOTTOM: #6600ff 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick='kwC(event,0,"")' onmouseout=kwL(event,this)>鎵嬫満</nobr>涓婄殑鎺ュ叆鐐硅緗傞兘鎬腑鍥界Щ鍔ㄩ潪瑕佹悶浠涔圕MNET銆丆MWAP錛屼腑鍥界壒鑹茬殑閫氫俊鍏徃銆?/clk> <p>銆銆鍙互鑷鍒涘緩涓鎺ュ叆鐐廣備互涓嬩唬鐮佸垱寤轟竴涓狢MWAP鎺ュ叆鐐癸細</p> <p><code>CString strFavoriteXml =<br>L"<wap-provisioningdoc>"<br>L"<characteristic type="CM_Networks">"<br>L"<characteristic type="Test_GPRS">"<br>L"<parm name="DestId" value="{D1D06580-C364-55ec-9421-6ACF34129C58}" />"<br>L"</characteristic>"<br>L"</characteristic>"<br>L"<characteristic type="CM_GPRSEntries">"<br>L"<characteristic type="Test_GPRS">"<br>L"<parm name="DestId" value="{D1D06580-C364-55ec-9421-6ACF34129C58}" />"<br>L"<characteristic type="DevSpecificCellular">"<br>L"<parm name="BearerInfoValid" value="1" />"<br>L"<parm name="GPRSInfoValid" value="1" />"<br>L"<parm name="GPRSInfoProtocolType" value="2" />"<br>L"<parm name="GPRSInfoL2ProtocolType" value="PPP" />"<br>L"<parm name="GPRSInfoAccessPointName" value="cmwap" />"<br>L"<parm name="GPRSInfoAddress" value="" />"<br>L"<parm name="GPRSInfoDataCompression" value="1" />"<br>L"<parm name="GPRSInfoHeaderCompression" value="1" />"<br>L"<parm name="GPRSInfoParameters" value="" />"<br>L"</characteristic>"<br>L"</characteristic>"<br>L"</characteristic>"<br>L"<characteristic type="CM_ProxyEntries">"<br>L"<characteristic type="WAP">"<br>L"<parm name="SrcId" value="{D1D06580-C364-55ec-9421-6ACF34129C58}" />"<br>L"<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />"<br>L"<parm name="Proxy" value="10.0.0.172:80" />"<br>L"<parm name="Enable" value="1" />"<br>L"<parm name="Type" value="1" />"<br>L"</characteristic>"<br>L"</characteristic>"<br>L"</wap-provisioningdoc>";<br>銆銆<br>LPWSTR pszwXMLout = NULL;<br>HRESULT hr = DMProcessConfigXML(strFavoriteXml, CFGFLAG_PROCESS, &pszwXMLout);<br>銆銆<br>if ( pszwXMLout )<br>{<br>銆delete [] pszwXMLout;<br>銆pszwXMLout = NULL;<br>}</code></p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/80610.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-04-21 14:54 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/04/21/80610.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>杞?Windows Mobile 6 SDK 涓殑 Cellular Emulator http://m.shnenglu.com/SpringSnow/archive/2009/04/15/79967.htmlSandySandyWed, 15 Apr 2009 01:59:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/04/15/79967.htmlhttp://m.shnenglu.com/SpringSnow/comments/79967.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/04/15/79967.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/79967.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/79967.html
鎽樿嚜: http://www.cnblogs.com/upto/archive/2007/02/14/649769.html 
         榛庢嘗鑰佸笀鐨勫崥瀹?br>

Windows Mobile 6 SDK 涓殑 Cellular Emulator

鐜板湪鐨?Windows Mobile 璁懼澶у鏁伴兘鎷ユ湁鐢?shù)璇濆拰鍏朵粬鏃牼U塊氫俊鐨勫姛鑳姐傚湪璁稿鎯呭喌涓嬶紝浣犳兂璁╀綘鐨勫簲鐢ㄧ▼搴忚窡榪欎簺閫氫俊鍔熻兘榪涜浜や簰銆備緥濡傦紝浣犳兂鍦ㄧ數(shù)璇濆搷璧風(fēng)殑鏃跺欙紝灝嗕綘鐨勫簲鐢ㄧ▼搴忔挱鏀鵑煶涔愮殑澹伴煶璋冨皬錛涙垨鑰呴渶瑕佺洿鎺ュ閫氫俊紜歡榪涜鍚勭鎿嶄綔銆傞偅涔堝紑鍙戣繖縐嶇被鍨嬬殑搴旂敤紼嬪簭寰寰姣旇緝鍥伴毦錛屾渶澶х殑闅劇偣鍦ㄤ簬嫻嬭瘯搴旂敤紼嬪簭銆?br>
涓轟簡瑙e喅嫻嬭瘯榪欑搴旂敤紼嬪簭鐨勫洶闅撅紝W(xué)indows Mobile 6 SDK 鍖呭惈浜?Cellular Emulator錛堣渹紿濅豢鐪熷櫒錛夈侰ellular Emulator 璁╀綘鑳藉鍦?Device Emulator 涓紝嫻嬭瘯浣犵殑搴旂敤紼嬪簭鍦ㄥ悇縐嶈渹紿濋氫俊鐨勬儏鍐典笅鐨勮涓恒?br>


Cellular Emulator 鏄竴涓己澶х殑嫻嬭瘯宸ュ叿錛屽畠鍙互鐢ㄤ簬嫻嬭瘯浣犵殑搴旂敤紼嬪簭鍦ㄨ渹紿濋氫俊鐘跺喌鍙樺寲鏃剁殑琛屼負銆傜敤 Cellular Emulator 鍙互鎵ц涓浜涚畝鍗曠殑嫻嬭瘯錛屽錛氬湪浠跨湡鍣ㄤ腑鎷ㄦ墦鐢?shù)璇濆Q屾帴鍚潵鐢?shù)鍜屾寕鏂數(shù)璇濆Q屽彂閫佸拰鎺ユ敹 SMS 淇℃伅絳夈備負浜嗚寮鍙戜漢鍛樺彲浠ユ祴璇曟洿澶嶆潅鐨勫姛鑳斤紝Cellular Emulator 榪樻敮鎸佸 SIM 閰嶇疆淇℃伅鐨勪慨鏀癸紝榪樻湁閫夋嫨2G緗戠粶榪樻槸3G緗戠粶銆傛墍鏈夎繖浜涙祴璇曞伐浣滈兘涓嶉渶瑕佺敤鍒頒竴鍙扮墿鐞嗚澶囥?/p>

瑕佽 Cellular Emulator 鍜?Device Emulator 鍙互涓璧烽厤鍚堜嬌鐢紝棣栧厛浣犻渶瑕佹妸浠栦滑鍏寵仈璧鋒潵銆?br>1. 璁頒笅 Cellular Emulator 宸︿笅瑙掔姸鎬佹爮鐨?COM 绔彛鍙楓傚 COM5銆?br>2. 鍦?Device Emulator 涓夋嫨“File-->Configure...”鑿滃崟欏癸紝鎵撳紑 Emulator Properties 瀵硅瘽妗嗐?br>3. 鍦?Emulator Properties 瀵硅瘽妗嗕腑閫夋嫨 Peripherals 閫夐」鍗°?br>4. 鎶婂垰鎵嶈涓嬬殑 COM 绔彛鍙瘋緭鍏ュ埌 Serial Port 0 鏂囨湰妗嗕腑銆傚鏋滀綘鍦ㄤ笅鎷夊垪琛ㄤ腑鎵句笉鍒頒綘鐨勭鍙e彿錛屽彲浠ヨ嚜宸辮緭鍏ヨ繘鍘匯?br>5. 鐐瑰嚮 OK 鎸夐挳淇濆瓨璁劇疆錛屽叧闂?Emulator Properties 瀵硅瘽妗嗐?br>6. 鐐瑰嚮“File-->Reset-->Soft”鑿滃崟欏癸紝瀵逛豢鐪熷櫒榪涜杞噸緗搷浣溿?br>


寰呬豢鐪熷櫒瀹屾垚閲嶇疆榪囩▼騫墮噸鏂板惎鍔ㄥ悗錛屼綘灝嗕細鐪嬪埌浠跨湡鍣ㄧ殑铚傜獫緗戠粶宸茬粡鍙敤浜嗐傚鏋滆繕鏄笉琛岋紝鍙兘鏄畨瑁呬簡 Windows Mobile 6 SDK 涔嬪悗錛屾病鏈夐噸鏂板惎鍔ㄧ郴緇熺殑鍘熷洜鍚с?br>
緇欎豢鐪熷櫒鎷ㄦ墦鐢?shù)璇?/strong>
鎵撳紑 Cellular Emulator 鐨?Call Manager 閫夐」鍗★紝鍦?Phone Number 鏂囨湰妗嗕腑杈撳叆浠繪剰涓涓數(shù)璇濆彿鐮侊紝鐐瑰嚮鏃佽竟鐨?Dial 鎸夐挳錛屼豢鐪熷櫒鐨勭數(shù)璇濋搩澹板皢鍝嶈搗錛屽茍鏄劇ず鏉ヨ嚜鎵杈撳叆鐨勭數(shù)璇濆彿鐮佺殑鏉ョ數(shù)銆傝繖鏃跺湪 Active Calls 鍒楄〃涓皢鍑虹幇浠跨湡鍣ㄤ笂鐨勬椿鍔ㄩ氳瘽錛?strong>Status
鏄劇ず涓?Incoming銆?br>鐢?272024榪欎釜鐢?shù)璇濆忥L(fēng)爜鍚戜豢鐪熷櫒鎷ㄦ墦鐢?shù)璇濆Q?br>

浠跨湡鍣ㄦ敹鍒扮數(shù)璇濆彿鐮佷負7272024鐨勬潵鐢?shù)锛?br>

浠庝豢鐪熷櫒鎷ㄦ墦鐢?shù)璇?/strong>
鍦?Preset Number 鍒楄〃涓彁渚涗簡4涓彲渚涙祴璇曠殑鐢?shù)璇濆忥L(fēng)爜銆?strong>Busy
琛ㄧず綰胯礬蹇欙紝Reject 琛ㄧず鎷掔粷鎺ュ惉錛?strong>Hang Up After Connect 琛ㄧず鎺ュ惉鍚庡啀鎸傛柇錛?strong>No Answer 琛ㄧず娌℃湁鍥炲簲銆傚皾璇曞湪浠跨湡鍣ㄤ腑鎷ㄦ墦7272021錛孋ellular Emulator 鐨?Active Calls 鍒楄〃灝嗘樉紺轟豢鐪熷櫒褰撳墠鐨勬椿鍔ㄩ氳瘽銆傜數(shù)璇濇帴閫氬悗鎸佺畫浜?0縐掗挓錛岀劧鍚庢寕鏂紝涔熷氨鏄?strong>Hang Up After Connect銆?br>



鍚戜豢鐪熷櫒鍙戦?SMS 淇℃伅
鎵撳紑 Cellular Emulator 鐨?SMS 閫夐」鍗★紝鍦?Send to device 鐨勫琛屾枃鏈涓緭鍏ョ煭淇″唴瀹癸紝鐒跺悗鐐瑰嚮 Send 鎸夐挳灝嗙煭淇″彂閫佽嚦浠跨湡鍣ㄣ?br>

浠跨湡鍣ㄥ皢鏀跺埌鏂扮煭淇★細


榪樺彲浠ヨ緗噸澶嶅彂閫併傞変腑 Repeatly 媯鏌ユ錛岃瀹氬ソ Interval錛堥棿闅旀椂闂達級鍜?Max Count錛堟渶澶ф暟鐩級錛岀劧鍚庡啀鐐瑰嚮 Send 鎸夐挳鍗沖彲銆傚鏋滀綘鍦ㄤ豢鐪熷櫒涓洖澶嶄簡淇℃伅錛屽皢浼氬湪 Cellular Emulator 鐨?Receive from device 鍒楄〃涓湅鍒頒綘鍥炲鐨勭煭淇°?br>

閫夋嫨緗戠粶
鎵撳紑 Cellular Emulator 鐨?Network 閫夐」鍗★紝鍙互閫夋嫨2G鎴栬?G緗戠粶錛屾柇寮 GPRS 榪炴帴錛屾煡鐪嬫暟鎹氶亾絳夈?br>

鎵ц鍜屾煡鐪?AT 鍛戒護
鎵撳紑 Cellular Emulator 鐨?nbsp;Injection 閫夐」鍗★紝榪欓噷鍙互鍚戜豢鐪熷櫒鍙戦?AT 鍛戒護鎴栦簨浠躲?br>

鎵撳紑 Cellular Emulator 鐨?nbsp;AT log 閫夐」鍗★紝鍙互鐪嬪埌鍒氭墠鎵鏈夊浠跨湡鍣ㄧ殑鎿嶄綔瀵瑰簲鐨?AT 鍛戒護銆?br>

浣跨敤閰嶇疆鏂囦歡
榪欓噷鍙互閫夋嫨浣跨敤鍝竴涓?SIM 閰嶇疆鏂囦歡錛屾枃浠跺唴瀹規(guī)槸 XML 鏍煎紡銆?br>

鎬葷粨
鏈変簡 Cellular Emulator 鐨勯厤鍚堬紝Device Emulator 鏄懼緱鏇村姞寮哄ぇ銆傜幇鍦?Windows Mobile 6 寮鍙戜漢鍛樺彲浠ヤ嬌鐢ㄤ豢鐪熷櫒榪涜寮鍙戝拰嫻嬭瘯錛岃屼笉闇瑕佽喘涔板悇縐嶇湡瀹炶澶囥傞仐鎲劇殑鏄紝Cellular Emulator 騫朵笉鏀寔 Windows Mobile 5.0 鍜?Windows Mobile 2003 鐨勪豢鐪熷櫒銆備笉榪囧ソ鍦?Windows Mobile 6 鐨?API 璺?Windows Mobile 5.0 鐨勭粷澶ч儴鍒嗕竴鏍鳳紝鎵浠ヤ綘鍙互鍦?Windows Mobile 6 鐨勪豢鐪熷櫒涓紑鍙戝拰璋冭瘯 Windows Mobile 5.0 鐨勫簲鐢ㄧ▼搴忋傚浜?Windows Mobile 2003 鍙兘嫻嬭瘯鏁堟灉娌℃湁閭d箞涓鑷達紝浣犱篃鍙互鑷繁灝濊瘯涓涓嬨?br>
鍙傝冿細
What's New for Developers in Windows Mobile 6



Sandy 2009-04-15 09:59 鍙戣〃璇勮
]]>
宸ヤ綔灝忔葷粨:鐣岄潰鍝嶅簲鐨勯棶棰?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/04/14/79851.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 14 Apr 2009 01:10:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/04/14/79851.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/79851.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/04/14/79851.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/79851.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/79851.html</trackback:ping><description><![CDATA[        鏄ㄥぉ涓鐩村湪璋冧竴孌典唬鐮侊紝嫻佺▼鏄繖鏍風(fēng)殑錛氭垜鍦ㄦ煇涓晫闈㈢▼搴忛噷鍏堟斁緗簡涓涓璇濇A錛岀敤鎴烽夋嫨鏄垨鍚︺傞夋嫨鏄悗錛屼細鍐嶅脊鍑轟竴涓璇濇B錛屽茍瑙﹀彂涓涓簨浠訛紝鐒跺悗鍐嶅惎鍔ㄤ竴涓璇濇C銆傝繖浜涘璇濇鏄ā鎬佺殑銆?br><br>        閫昏緫鎰熻寰堝錛屾病鏈夐棶棰樸備絾鏄晫闈㈢殑寮傚父璁╂垜鏄ご鐤箋侫瀵硅瘽妗嗛夋嫨鏄悗錛孊瀵硅瘽妗嗘樉紺轟笉瀹屽叏錛屽湪C瀵規(guī)埛妗嗘樉紺虹殑鏃跺欙紝鏂囧瓧鏄劇ず鍙堟湁寮傚父銆傛鏌ヤ簡涓涓嬶紝鍘熸潵EndDialog娌℃湁鎵ц鎴愬姛銆備嬌鐢℅etLastError鑾峰彇鐨勯敊璇間篃鏄紜殑銆?br>  <br>        鎯嗘呬簡……錛屽悗鏉ュ埄鐢ㄧ嚎紼嬶紝鍘繪墽琛岄偅涓簨浠訛紝鐣岄潰涔熸甯鎬簡銆?br><br>        榪欐槸涓轟粈涔堝憿錛?br>         鎴戜釜浜鴻寰楁槸浜嬩歡鐨勬墽琛屽獎鍝嶅埌浜嗙晫闈㈢殑鍒鋒柊錛屽洜涓烘垜鐨勪簨浠舵槸鍦ㄧ晫闈㈢殑紼嬪簭閲岄潰鎵ц鐨勩傚畠瀵圭晫闈㈡秷鎭繘琛屼簡闃誨錛屽鑷寸晫闈笉鑳藉埛鏂般?br>          榪欎釜闂錛屼笉鏄垜絎竴嬈¢亣鍒幫紝浠ュ墠涔熼亣鍒拌繃榪欐牱鐨勯棶棰橈紝娌℃湁鎬葷粨銆傛葷粨涓涓嬶紝涓嶈鍐嶇姱浜嗐?br>   <br> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/79851.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-04-14 09:10 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/04/14/79851.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Windows Mobile 鑾峰彇SIM鍗¤仈緋諱漢淇℃伅http://m.shnenglu.com/SpringSnow/archive/2009/04/09/79344.htmlSandySandyThu, 09 Apr 2009 07:20:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/04/09/79344.htmlhttp://m.shnenglu.com/SpringSnow/comments/79344.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/04/09/79344.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/79344.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/79344.htmlWindows Mobile涓婅仈緋諱漢鐨勪俊鎭彲鍒嗗埆瀛樺偍鍦ㄦ墜鏈哄拰SIM鍗′腑銆傛垜灝濊瘯榪囦粠鎵嬫満錛屽嵆鎵璋撶殑Outlook鑱旂郴浜轟腑璇誨彇鑱旂郴浜虹殑淇℃伅錛屼絾鏄繕娌℃湁灝濊瘯榪囦粠sim鍗′腑璇誨彇鑱旂郴浜虹殑淇℃伅錛屽績閲屼篃涓鐩撮粯璁や負闅懼惂銆備粖澶╂煡浜嗕竴涓嬶紝鍙戠幇绔熺劧榪欎箞綆鍗曪紝鐩告瘮outlook鐨勮鍙栨柟寮忔潵璇達紝綆鍗曞緢澶氥?br>
鎴戜滑鍏堟潵瀹氫箟涓粨鏋?br>
typedef struct {
  TCHAR szName[32];
  TCHAR szTelNum[32];
}CONTACTSTRUCT;

瑕佷嬌鐢⊿IM鐨勭浉鍏蟲枃浠訛紝闇瑕佸寘鍚ご鏂囦歡 simmgr.h

棣栧厛瑕佸垵濮嬪寲涓涓?br>HSIM lphSim;  
 HRESULT hr = SimInitialize(0, NULL, 0, &lphSim);
if(FAILED(hr))  
 {
  return;
 }

鍏舵鑾峰彇鎬誨叡浣跨敤鐨勫灝戞潯璁板綍涓庢誨叡鍙互瀹圭撼鐨勮褰曟潯鏁?nbsp; 
 DWORD dwUsed,dwTotal;  
 hr = SimGetPhonebookStatus(lphSim, SIM_PBSTORAGE_SIM, &dwUsed, &dwTotal);

鐒跺悗鎴戜滑璇誨彇鑱旂郴浜虹殑淇℃伅
瀹氫箟涓涓?br>std::vector<CONTACTSTRUCT> vContact;

 for(int i=0; i<dwTotal; i++)      
 {
  //瀵圭粨鏋勫垵濮嬭瘽浠ヤ笅  
  SIMPHONEBOOKENTRY phoneent;  
  memset(&phoneent,0,sizeof(phoneent));  
  phoneent.cbSize = sizeof(phoneent);

  if (SUCCEEDED(SimReadPhonebookEntry(lphSim, SIM_PBSTORAGE_SIM, i+1, &phoneent)))
  {
   CONTACTSTRUCT tempContact = {0};

   wcsncpy(tempContact.szName, phoneent.lpszText, 31); // 濮撳悕
   wcsncpy(tempContact.szTelNum, phoneent.lpszAddress, 31); // 鐢?shù)璇?/p>

   vContact.push_back(tempContact );
  }
 }

 //鏈鍚庡埆蹇樹簡娓呯悊      
 SimDeinitialize(lphSim);
 lphSim = NULL;

榪欓噷璇誨彇鐨勬椂鍊欑敤浜哾wTotal錛屾槸鍥犱負鍚湁緇忛獙鐨勪漢璇達紝sim鍗$殑瀛樺偍鍙兘涓嶈繛緇紝濡傛灉鐢╠wUsed鐨勮瘽錛屽彲鑳戒細鏈夐棶棰樸?br>
縐瘡涓涓嬶紝鏈夋椂闂村啀濂藉ソ鐪嬩竴涓媜utlook鑱旂郴浜虹殑銆?br>
鍙傝冩枃绔狅細
Pocket 涓幏鍙朣IM鍗′腑鑱旂郴浜轟俊鎭?br>http://blog.csdn.net/xulg1984/archive/2008/05/30/2497712.aspx



Sandy 2009-04-09 15:20 鍙戣〃璇勮
]]>
vs 鍚庣紑鍚嶆葷粨http://m.shnenglu.com/SpringSnow/archive/2009/04/08/79257.htmlSandySandyWed, 08 Apr 2009 05:43:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/04/08/79257.htmlhttp://m.shnenglu.com/SpringSnow/comments/79257.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/04/08/79257.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/79257.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/79257.html

杞嚜: http://www.cnblogs.com/dotnetearthworm/archive/2009/02/02/1382488.html

.sln
錛氳В鍐蟲柟妗堟枃浠訛紝涓鴻В鍐蟲柟妗堣祫婧愮鐞嗗櫒鎻愪緵鏄劇ず綆$悊鏂囦歡鐨勫浘褰㈡帴鍙f墍闇鐨勪俊鎭?

.csproj:欏圭洰鏂囦歡錛屽垱寤哄簲鐢ㄧ▼搴忔墍闇鐨勫紩鐢ㄣ佹暟鎹繛鎺ャ佹枃浠跺す鍜屾枃浠剁殑淇℃伅銆?

.aspx錛歐eb 紿椾綋欏電敱涓ら儴鍒嗙粍鎴愶細瑙嗚鍏冪礌錛圚TML銆佹湇鍔″櫒鎺т歡鍜岄潤鎬佹枃鏈級鍜岃欏電殑緙栫▼閫昏緫銆俈isual Studio 灝嗚繖涓や釜緇勬垚閮ㄥ垎鍒嗗埆瀛樺偍鍦ㄤ竴涓崟鐙殑鏂囦歡涓傝瑙夊厓绱犲湪.aspx 鏂囦歡涓垱寤恒?

.ascx錛欰SP.NET鐨勭敤鎴鋒帶浠訛紙涔熷彨鍋?#8220;pagelets”錛夛紝鏄綔涓轟竴縐嶅皝瑁呬簡鐗瑰畾鍔熻兘鍜岃涓猴紙榪欎袱鑰呰琚敤鍦╓eb搴旂敤紼嬪簭鐨勫悇縐嶉〉闈笂錛夌殑Web欏甸潰琚紑鍙戠殑銆備竴涓敤鎴鋒帶浠跺寘鍚簡HTML銆佷唬鐮佸拰鍏朵粬Web鎴栬呯敤鎴鋒帶浠剁殑緇勫悎錛屽茍鍦╓eb鏈嶅姟鍣ㄤ笂浠ヨ嚜宸辯殑鏂囦歡鏍煎紡淇濆瓨錛屽叾鎵╁睍鍚嶆槸*.ascx銆侫SP.NET閲岀殑緙虹渷閰嶇疆騫朵笉鍏佽Web瀹㈡埛绔氳繃URL鏉ヨ闂繖浜涙枃浠訛紝浣嗘槸榪欎釜緗戠珯鐨勫叾浠栭〉闈㈠彲浠ラ泦鎴愯繖浜涙枃浠墮噷鎵鍖呭惈鐨勫姛鑳姐?

.aspx.cs錛歐eb 紿椾綋欏電殑緙栫▼閫昏緫浣嶄簬涓涓崟鐙殑綾繪枃浠朵腑錛岃鏂囦歡縐頒綔浠g爜闅愯棌綾繪枃浠訛紙.aspx.cs錛夈?

.cs錛?綾繪ā鍧椾唬鐮佹枃浠躲備笟鍔¢昏緫澶勭悊灞傜殑浠g爜銆?

.asax錛欸lobal.asax 鏂囦歡錛堜篃鍙仛 ASP.NET 搴旂敤紼嬪簭鏂囦歡錛夋槸涓涓彲閫夌殑鏂囦歡錛岃鏂囦歡鍖呭惈鍝嶅簲 ASP.NET 鎴?HTTP 妯″潡寮曞彂鐨勫簲鐢ㄧ▼搴忕駭鍒簨浠剁殑浠g爜銆?

.config錛歐eb.config 鏂囦歡鍚戝畠浠墍鍦ㄧ殑鐩綍鍜屾墍鏈夊瓙鐩綍鎻愪緵閰嶇疆淇℃伅銆?

.aspx.resx/.resx錛氳祫婧愭枃浠訛紝璧勬簮鏄湪閫昏緫涓婄敱搴旂敤紼嬪簭閮ㄧ講鐨勪換浣曢潪鍙墽琛屾暟鎹傞氳繃鍦ㄨ祫婧愭枃浠朵腑瀛樺偍鏁版嵁錛屾棤闇閲嶆柊緙栬瘧鏁翠釜搴旂敤紼嬪簭鍗沖彲鏇存敼鏁版嵁銆?51aspx.com

.XSD:XML schema鐨勪竴縐?浠嶥TD,XDR鍙戝睍鍒癤SD

.pdb:PDB錛堢▼搴忔暟鎹簱錛夋枃浠朵繚鎸佺潃璋冭瘯鍜岄」鐩姸鎬佷俊鎭紝浠庤屽彲浠ュ紼嬪簭鐨勮皟璇曢厤緗繘琛屽閲忛摼鎺ャ?

.suo:瑙e喅鏂規(guī)鐢ㄦ埛閫夐」,璁板綍鎵鏈夊皢涓庤В鍐蟲柟妗堝緩绔嬪叧鑱旂殑閫夐」錛屼互渚垮湪姣忔鎵撳紑鏃訛紝瀹冮兘鍖呭惈鎮(zhèn)ㄦ墍鍋氱殑鑷畾涔夎緗?

.asmx錛?asmx鏂囦歡鍖呭惈 WebService 澶勭悊鎸囦護錛屽茍鐢ㄤ綔 XML Web services 鐨勫彲瀵誨潃鍏ュ彛鐐?51aspx銆?

.vsdisco錛堥」鐩彂鐜幫級鏂囦歡 鍩轟簬 XML 鐨勬枃浠訛紝瀹冨寘鍚負 Web 鏈嶅姟鎻愪緵鍙戠幇淇℃伅鐨勮祫婧愮殑閾炬帴 (URL-51aspx )銆?

.htc:涓涓狧TML鏂囦歡,鍖呭惈鑴氭湰鍜屽畾涔夌粍浠剁殑涓緋誨垪HTC鐗瑰畾鍏冪礌.htc鎻愪緵鍦ㄨ剼鏈腑implement緇勪歡鐨勬満鍒?/p>

鏉ユ簮錛?.Net涓枃紺懼尯錛?a >http://www.aspxcs.net/)

涓婇潰鏄垜鐪嬪埌鐨勪竴浜涗粙緇?榪欓噷鍐嶈ˉ鍏呬竴浜?
  .clw   鏀寔ClassWizard  
  .ncb   鏀寔ClassView  
  .opt   淇濆瓨宸ヤ綔絀洪棿鐨勯厤緗?nbsp; 
  .aps   鏀寔ResourceView  
  .bsc   嫻忚鍣ㄤ俊鎭枃浠?nbsp; 
  .dsp   欏圭洰鏂囦歡  
  .dsw   宸ヤ綔絀洪棿鏂囦歡  
  .mak   澶栭儴鐨勫垱寤烘枃浠?nbsp; 
  .plg   寤虹珛鏃ュ織鏂囦歡 



Sandy 2009-04-08 13:43 鍙戣〃璇勮
]]>
warning C4005: 'WINVER' : macro redefinition 鐨勮В鍐蟲柟娉?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/04/07/79184.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 07 Apr 2009 07:22:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/04/07/79184.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/79184.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/04/07/79184.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/79184.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/79184.html</trackback:ping><description><![CDATA[ 瀵逛簬warning C4005: 'WINVER' : macro redefinition鐨勫鐞?br><br> 鍦╓indows.h涓湁濡備笅瀹氫箟錛?  <br>  #ifndef   WINVER   <br>  #define   WINVER   0x0400   <br>  #endif   <br>  濡傛灉浣犳妸#define   WINVER   0x500緗簬#include   <windows.h>涔嬪墠,灝變笉浼氬嚭鐜拌鍛?   <br><br>鎽樿嚜:http://topic.csdn.net/t/20020103/15/456195.html<br> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/79184.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-04-07 15:22 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/04/07/79184.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>濡備綍鍦ㄦ柟妗嗛噷鎵撳鍕?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/31/78463.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 31 Mar 2009 07:44:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/31/78463.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/78463.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/31/78463.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/78463.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/78463.html</trackback:ping><description><![CDATA[榪欎釜鐨勭‘榪樻槸鎸哄ご鐤肩殑銆傚墠涓闃舵鍚屽鍛婅瘔鎴戯紝寰堜笉騫革紝浠婂ぉ鍙堢粰蹇樹簡銆?br>鏌ヤ簡涓涓嬶紝鍐嶆牴鎹ā緋婅蹇嗭紝榪樻槸鎶婃柟妗嗘墦涓婁簡瀵瑰嬀銆?br><br>鍙兘浣犱篃鏈夎繖鏍風(fēng)殑鐑︽伡錛屼笉濡ㄦ垜浠潵鐪嬩竴涓嬶細<br><br>鍦╳ord瀛椾綋涓夋嫨Wingdings2錛岀劧鍚庡啓涓涓ぇ鍐橰錛岃繖鏍蜂綘灝辯湅鍒版柟妗嗘墦瀵瑰嬀浜嗐?br><br>濂借鎬х湡涓嶅鐑傜瑪澶達紝鍗犳涓瑙掞紝璁板綍涓涓嬨?br><br> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/78463.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-31 15:44 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/31/78463.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>windows mobile 涓殑Database 瀵瑰簲鍊?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/30/78378.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Mon, 30 Mar 2009 08:32:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/30/78378.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/78378.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/30/78378.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/78378.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/78378.html</trackback:ping><description><![CDATA[<p>Windows mobile 涓?outlook 涓換鍔?綰︿細,鑱旂郴浜?鍦ㄨ皟鐢ㄦ椂,鏈夌浉搴旂殑database oid<br>瀵瑰簲鐨刣atabase oid 涓嶆槸寰堟竻妤?鎴戦氳繃瀹為獙,鍙戠幇,浠誨姟鏄?3, 綰︿細鏄?, 鑱旂郴浜烘槸10.<br><br>閭f湁娌℃湁涓撻棬鐨勬暟鍊煎搴斿憿?鏌ヤ簡涓涓?鍙戠幇榪欎箞涓笢涓?<br><br>typedef /* [v1_enum] */<br>enum OlDefaultFolders<br>    {   olFolderCalendar    = 9,<br>        olFolderContacts    = 10,<br>        olFolderTasks       = 13,<br>        olFolderCities      = 101,<br>        olFolderInfrared    = 102,<br>    } OlDefaultFolders;<br><br>鍜屾垜浠殑瀹為獙鏁版嵁涓鏍?<br><br>涓嶉敊鍚?</p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/78378.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-30 16:32 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/30/78378.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>DATE鍜孲YSTEMTIME鐨勮漿鎹?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/26/77906.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Thu, 26 Mar 2009 01:21:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/26/77906.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/77906.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/26/77906.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/77906.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/77906.html</trackback:ping><description><![CDATA[鏈榪戝湪鎼炰竴涓皬涓滀笢,<br>閲岄潰娑夊強鍒頒簡DATE鍜孲YSTEMTIME鐨勮漿鎹?娌℃湁鐢ㄥ埌榪?璁板綍涓涓?<br><br> <strong> DATE 杞崲鎴怱YSTEMTIME</strong><br>  VariantTimeToSystemTime<br>  鍏跺師鍨嬩負:<br><strong>  INT VariantTimeToSystemTime( <br>  double </strong><em><a class=synParam onclick=showTip(this) href=""><font color=#006bad>vtime</font></a></em><strong>,              </strong><br><strong>  LPSYSTEMTIME </strong><em><a class=synParam onclick=showTip(this) href=""><font color=#006bad>lpSystemTime</font></a>  </em><br><strong>  );</strong><br>  <br><br>   <strong>SYSTEMTIME杞崲鎴怐ATE <br></strong>   SystemTimeToVariantTime<br>  鍏跺師鍨嬩負:<br>  <strong>INT SystemTimeToVariantTime(<br>  LPSYSTEMTIME </strong><em><a class=synParam onclick=showTip(this) href=""><font color=#006bad>lpSystemTime</font></a></em>,<em>  </em><br><strong>  double </strong><em>       *<a class=synParam onclick=showTip(this) href=""><font color=#006bad>pvtime</font></a>           </em><br><strong>  );</strong> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/77906.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-26 09:21 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/26/77906.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀵硅瘽妗嗙殑灞炴ч棶棰?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/18/77048.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Wed, 18 Mar 2009 11:00:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/18/77048.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/77048.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/18/77048.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/77048.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/77048.html</trackback:ping><description><![CDATA[       浠婂ぉ璋冭瘯瀹夎鏂囦歡鐨勫璇濇錛屾í灞忕殑鏃跺欙紝Edit妗嗙殑鏄劇ず錛屾諱細闅忕潃婊氬姩鏉″線涓婄Щ鍔紝涓嬮潰鏄劇ず鍑轟竴澶х墖鐨勭┖鐧姐?br><br>      寰堟槸閮侀椃鍟?#8230;…<br><br>       鍦ㄤ唬鐮佷腑淇敼浜嗗緢闀挎椂闂達紝鎵句笉鍑哄師鍥狅紝鏈鍚庡拰鍒漢浠g爜姣斿鐨勬椂鍊欙紝鍙戠幇鎴戠珶鐒舵槸鍦ㄨ祫婧愭枃浠朵腑鐨勫璇濇灞炴у畾涔変腑姣斿埆浜哄涓涓猈S_BORDER灞炴э紝闂榪庡垉鑰岃В銆?br><br>         浣嗙┒鍏跺師鍥狅紝榪樹笉鏄緢娓呮銆?br><br>         WS_BORDER: Create a window that has a border.<br><br>          浼間箮涔熺湅涓嶅嚭鏉ヤ粈涔堝師鍥犮? <img src ="http://m.shnenglu.com/SpringSnow/aggbug/77048.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-18 19:00 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/18/77048.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Windows Mobile涓璄dit鎺т歡鐨勬粴鍔ㄦ潯闂http://m.shnenglu.com/SpringSnow/archive/2009/03/18/77046.htmlSandySandyWed, 18 Mar 2009 10:48:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/03/18/77046.htmlhttp://m.shnenglu.com/SpringSnow/comments/77046.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/03/18/77046.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/77046.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/77046.html        鍦╓indows Mobile涓紝Edit鎺т歡鍦ㄥ叿鏈塛S_VSCROLL鐨勬椂鍊欙紝鏃犺鏄劇ず鏂囧瓧鐨勫灝戯紝閮戒細鏄劇ず婊氬姩鏉°傚浣曞湪鏄劇ず鏂囧瓧涓嶅埌涓欏電殑鎯呭喌涓嬶紝璁╂粴鍔ㄦ潯涓嶆樉紺哄憿錛?br>
         鎴戞槸榪欐牱鑰冭檻鐨勶細鍒ゆ柇鏄劇ず鏂囧瓧鐨勯珮搴︼紝鍗蟲樉紺烘枃瀛楃殑琛屾暟*鍗曚釜鏂囧瓧鐨勯珮搴︼紝鍒ゆ柇鍏舵槸鍚﹀ぇ浜庡睆騫曢珮搴︼紝濡傛灉澶т簬錛屽垯鏀瑰彉Edit鎺т歡鐨勫睘鎬э紝浣垮叾鍏鋒湁WS_VSCROLL灞炴э紱濡傛灉灝忎簬鎴栫瓑浜庯紝鍒欐敼鍙楨dit鎺т歡鐨勫睘鎬э紝浣垮叾涓嶅叿鏈塛S_VSCROLL灞炴с?br>
         浠g爜紺轟緥錛?br>
         int height = GetSystemMetrics(SM_CYFULLSCREEN); // 姝ゅ紺哄睆騫曢珮搴︼紝鍙嚜宸辮瀹?br>         
         HWND hEdit = GetDlgItem(hDlg, IDC_EDIT);
         DWORD dwLineCount = (DWORD)::SendMessage(hEdit, EM_GETLINECOUNT, 0, 0L);
         HDC hdc = GetDC(hDlg);
         TEXTMETRIC metric;
         GetTextMetrics(hdc, &metric);
         ReleaseDC(hDlg, hdc); 

          if (metric.tmHeight * dwLineCount <= height))
         {
               SetWindowLong(hEdit, GWL_STYLE, WS_VISIBLE | ES_MULTILINE | ES_READONLY);
           }
           else
           {
                SetWindowLong(hEdit,GWL_STYLE, WS_VISIBLE| WS_VSCROLL|   ES_MULTILINE  |ES_READONLY);
           }

           鎴戝湪鍒涘緩Edit鎺т歡鐨勬椂鍊欙紝涓寮濮嬫病鏈夎緗甒S_VSCROLL灞炴э紝鍙戠幇鍔犱笂WS_VSCROLL灞炴у悗錛屽浜庢寜閿殑涓婁笅鍝嶅簲鏈変簺闂銆傚悗鏉ュ氨鍙嶅叾閬撹岃涔嬶紝鍏堣鍏跺叿鏈塛S_VSCROLL灞炴э紝鐒跺悗鍐嶅垽鏂叾鏄惁璇ユ樉紺烘粴鍔ㄦ潯銆?br>
            鍦╓indows Mobile涓秹鍙婂埌妯珫灞忓垏鎹㈢殑闂錛屾瘮濡傝錛屽湪绔栧睆鐨勬椂鍊欐病鏈夋粴鍔ㄦ潯錛屽埌妯睆鐨勬椂鍊欏張闇瑕佹湁婊氬姩鏉★紝姝ゆ椂鎬庝箞鍔烇紵
             鍦╓M錛縎IZE涓繘琛屼互涓婄殑灞炴у垽鏂紝浣嗘槸鏈変竴涓棶棰橀渶瑕佹敞鎰忥細濡傛灉闇瑕佽皟鏁碋dit鎺т歡鐨勫ぇ灝忥紝闇瑕佸湪灞炴у垽鏂疆鍚庤繘琛屻?br>
              涓鐐瑰績寰楋紝澶у鍙互璇曡瘯鍝堬紒
          

        



Sandy 2009-03-18 18:48 鍙戣〃璇勮
]]>
杞細Teach Yourself Programming in Ten Years http://m.shnenglu.com/SpringSnow/archive/2009/03/14/76557.htmlSandySandySat, 14 Mar 2009 02:24:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/03/14/76557.htmlhttp://m.shnenglu.com/SpringSnow/comments/76557.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/03/14/76557.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/76557.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/76557.htmlWhy is everyone in such a rush?
Walk into any bookstore, and you'll see how to Teach Yourself Java in 7 Days alongside endless variations offering to teach Visual Basic, Windows, the Internet, and so on in a few days or hours. I did the following power search at Amazon.com:
pubdate: after 1992 and title: days and
(title: learn or title: teach yourself)
and got back 248 hits. The first 78 were computer books (number 79 was Learn Bengali in 30 days). I replaced "days" with "hours" and got remarkably similar results: 253 more books, with 77 computer books followed by Teach Yourself Grammar and Style in 24 Hours at number 78. Out of the top 200 total, 96% were computer books.
The conclusion is that either people are in a big rush to learn about computers, or that computers are somehow fabulously easier to learn than anything else. There are no books on how to learn Beethoven, or Quantum Physics, or even Dog Grooming in a few days.

Let's analyze what a title like Learn Pascal in Three Days could mean:

Learn: In 3 days you won't have time to write several significant programs, and learn from your successes and failures with them. You won't have time to work with an experienced programmer and understand what it is like to live in that environment. In short, you won't have time to learn much. So they can only be talking about a superficial familiarity, not a deep understanding. As Alexander Pope said, a little learning is a dangerous thing.

Pascal: In 3 days you might be able to learn the syntax of Pascal (if you already knew a similar language), but you couldn't learn much about how to use the syntax. In short, if you were, say, a Basic programmer, you could learn to write programs in the style of Basic using Pascal syntax, but you couldn't learn what Pascal is actually good (and bad) for. So what's the point? Alan Perlis once said: "A language that doesn't affect the way you think about programming, is not worth knowing". One possible point is that you have to learn a tiny bit of Pascal (or more likely, something like Visual Basic or javascript) because you need to interface with an existing tool to accomplish a specific task. But then you're not learning how to program; you're learning to accomplish that task.

in Three Days: Unfortunately, this is not enough, as the next section shows.
Teach Yourself Programming in Ten Years
Researchers (Hayes, Bloom) have shown it takes about ten years to develop expertise in any of a wide variety of areas, including chess playing, music composition, painting, piano playing, swimming, tennis, and research in neuropsychology and topology. There appear to be no real shortcuts: even Mozart, who was a musical prodigy at age 4, took 13 more years before he began to produce world-class music. In another genre, the Beatles seemed to burst onto the scene, appearing on the Ed Sullivan show in 1964. But they had been playing since 1957, and while they had mass appeal early on, their first great critical success, Sgt. Peppers, was released in 1967. Samuel Johnson thought it took longer than ten years: "Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased at a lesser price." And Chaucer complained "the lyf so short, the craft so long to lerne."
Here's my recipe for programming success:

Get interested in programming, and do some because it is fun. Make sure that it keeps being enough fun so that you will be willing to put in ten years.

Talk to other programmers; read other programs. This is more important than any book or training course.

Program. The best kind of learning is learning by doing. To put it more technically, "the maximal level of performance for individuals in a given domain is not attained automatically as a function of extended experience, but the level of performance can be increased even by highly experienced individuals as a result of deliberate efforts to improve." (p. 366) and "the most effective learning requires a well-defined task with an appropriate difficulty level for the particular individual, informative feedback, and opportunities for repetition and corrections of errors." (p. 20-21) The book Cognition in Practice: Mind, Mathematics, and Culture in Everyday Life is an interesting reference for this viewpoint.

If you want, put in four years at a college (or more at a graduate school). This will give you access to some jobs that require credentials, and it will give you a deeper understanding of the field, but if you don't enjoy school, you can (with some dedication) get similar experience on the job. In any case, book learning alone won't be enough. "Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter" says Eric Raymond, author of The New Hacker's Dictionary. One of the best programmers I ever hired had only a High School degree; he's produced a lot of great software, has his own news group, and through stock options is no doubt much richer than I'll ever be.

Work on projects with other programmers. Be the best programmer on some projects; be the worst on some others. When you're the best, you get to test your abilities to lead a project, and to inspire others with your vision. When you're the worst, you learn what the masters do, and you learn what they don't like to do (because they make you do it for them).

Work on projects after other programmers. Be involved in understanding a program written by someone else. See what it takes to understand and fix it when the original programmers are not around. Think about how to design your programs to make it easier for those who will maintain it after you.

Learn at least a half dozen programming languages. Include one language that supports class abstractions (like Java or C++), one that supports functional abstraction (like Lisp or ML), one that supports syntactic abstraction (like Lisp), one that supports declarative specifications (like Prolog or C++ templates), one that supports coroutines (like Icon or Scheme), and one that supports parallelism (like Sisal).

Remember that there is a "computer" in "computer science". Know how long it takes your computer to execute an instruction, fetch a word from memory (with and without a cache miss), read consecutive words from disk, and seek to a new location on disk. (Answers here.)

Get involved in a language standardization effort. It could be the ANSI C++ committee, or it could be deciding if your local coding style will have 2 or 4 space indentation levels. Either way, you learn about what other people like in a language, how deeply they feel so, and perhaps even a little about why they feel so.

Have the good sense to get off the language standardization effort as quickly as possible.
With all that in mind, its questionable how far you can get just by book learning. Before my first child was born, I read all the How To books, and still felt like a clueless novice. 30 Months later, when my second child was due, did I go back to the books for a refresher? No. Instead, I relied on my personal experience, which turned out to be far more useful and reassuring to me than the thousands of pages written by experts.
Fred Brooks, in his essay No Silver Bullets identified a three-part plan for finding great software designers:

Systematically identify top designers as early as possible.

Assign a career mentor to be responsible for the development of the prospect and carefully keep a career file.

Provide opportunities for growing designers to interact and stimulate each other.

This assumes that some people already have the qualities necessary for being a great designer; the job is to properly coax them along. Alan Perlis put it more succinctly: "Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers".
So go ahead and buy that Java book; you'll probably get some use out of it. But you won't change your life, or your real overall expertise as a programmer in 24 hours, days, or even months.


References
Bloom, Benjamin (ed.) Developing Talent in Young People, Ballantine, 1985.

Brooks, Fred, No Silver Bullets, IEEE Computer, vol. 20, no. 4, 1987, p. 10-19.

Hayes, John R., Complete Problem Solver Lawrence Erlbaum, 1989.

Lave, Jean, Cognition in Practice: Mind, Mathematics, and Culture in Everyday Life, Cambridge University Press, 1988.
http://www.norvig.com/



Sandy 2009-03-14 10:24 鍙戣〃璇勮
]]>
Windows Mobile鑾峰彇榪涚▼璺緞http://m.shnenglu.com/SpringSnow/archive/2009/03/11/76250.htmlSandySandyWed, 11 Mar 2009 09:52:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/03/11/76250.htmlhttp://m.shnenglu.com/SpringSnow/comments/76250.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/03/11/76250.html#Feedback2http://m.shnenglu.com/SpringSnow/comments/commentRss/76250.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/76250.html
寮鍙戠殑鏃跺欏埄鐢ㄦ暟瀛楃鍚嶅氨鍙互瑙e喅銆?br>
寮鍙戠殑鏃跺欙紝鍦≒roject->Property->Configuration Properties->Authenticode Signing涓渶瑕佸姞杞藉紑鍙戝畨鍏ㄨ瘉涔︺?br>
榪欐牱鎴戜滑灝卞彲浠ュ緢鏂逛究鐨勮幏寰楄繘紼嬬殑璺緞

TCHAR szPath[MAX_PATH];
HANDLE hProcess 
= OpenProcess(0, FALSE, pe.th32ProcessID);
   GetModuleFileName((HMODULE)hProcess, szPath, 
sizeof(szPath));
   CloseHandle(hProcess);

濡傛灉hProcess涓篘ULL鐨勮瘽錛岃幏鍙栫殑鏄綋鍓嶈繘紼嬬殑璺緞銆?br>
鎵浠ュ紑鍙慡martPhone鏃墮渶瑕佹敞鎰忚繖鐐廣傛秹鍙婄壒鏉傾PI浜嗭紝灝遍渶瑕佺鍚嶄簡銆?

Sandy 2009-03-11 17:52 鍙戣〃璇勮
]]>
Windows Mobile 鍙戦佺煭淇$殑闂http://m.shnenglu.com/SpringSnow/archive/2009/03/10/76107.htmlSandySandyTue, 10 Mar 2009 06:14:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/03/10/76107.htmlhttp://m.shnenglu.com/SpringSnow/comments/76107.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/03/10/76107.html#Feedback11http://m.shnenglu.com/SpringSnow/comments/commentRss/76107.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/76107.html鏈榪戝湪宸ヤ綔涓亣鍒頒竴涓瘮杈冩紓鐨勭幇璞★紝鍦ㄦ煇浜涚渷鍖轟笌SP鐨勭煭淇′氦浜掑瓨鍦ㄩ棶棰橈紝鐭俊鍙戦佷笉鍑哄幓銆傛煡浜嗕竴涓嬪師鍥狅細SmsSendMessage鍙傛暟璁劇疆鐨勯棶棰樸?/span>

鍦?/span>Windows Mobile 5.0SDK鐨?/span>HelloSMS渚嬪瓙涓紝鍙戦佺煭淇$殑浠g爜鏄繖鏍峰啓鐨?/span>

void SendSMS(BOOL bSendConfirmation, BOOL bUseDefaultSMSC, LPCTSTR lpszSMSC, LPCTSTR lpszRecipient, LPCTSTR lpszMessage)
{
    SMS_HANDLE smshHandle;
    SMS_ADDRESS smsaSource;
    SMS_ADDRESS smsaDestination;
    TEXT_PROVIDER_SPECIFIC_DATA tpsd;
    SMS_MESSAGE_ID smsmidMessageID;

    
// try to open an SMS Handle
    if(FAILED(SmsOpen(SMS_MSGTYPE_TEXT, SMS_MODE_SEND, &smshHandle, NULL)))
    
{
        MessageBox(NULL,
                    (LPCTSTR)LoadString(ghInstance, IDS_ERROR_SMSOPEN, 
00), 
                    (LPCTSTR)LoadString(ghInstance, IDS_CAPTION_ERROR, 
00),
                    MB_OK 
| MB_ICONERROR);
        
return;
    }


    
// Create the source address
    if(!bUseDefaultSMSC)
    
{
        smsaSource.smsatAddressType 
= SMSAT_INTERNATIONAL;
        _tcsncpy(smsaSource.ptsAddress, lpszSMSC, SMS_MAX_ADDRESS_LENGTH);
    }


    
// Create the destination address
    smsaDestination.smsatAddressType = SMSAT_INTERNATIONAL;
    _tcsncpy(smsaDestination.ptsAddress, lpszRecipient, SMS_MAX_ADDRESS_LENGTH);

    
// Set up provider specific data
    memset(&tpsd, 0sizeof(tpsd));
    tpsd.dwMessageOptions 
= bSendConfirmation ? PS_MESSAGE_OPTION_STATUSREPORT : PS_MESSAGE_OPTION_NONE;
    tpsd.psMessageClass 
= PS_MESSAGE_CLASS1;
    tpsd.psReplaceOption 
= PSRO_NONE;
    tpsd.dwHeaderDataSize 
= 0;

    
// Send the message, indicating success or failure
    if(SUCCEEDED(SmsSendMessage(smshHandle, ((bUseDefaultSMSC) ? NULL : &smsaSource), 
                                 
&smsaDestination, NULL, (PBYTE) lpszMessage, 
                                 _tcslen(lpszMessage) 
* sizeof(TCHAR), (PBYTE) &tpsd, 
                                 
sizeof(TEXT_PROVIDER_SPECIFIC_DATA), SMSDE_OPTIMAL, 
                                 SMS_OPTION_DELIVERY_NONE, 
&smsmidMessageID)))
    
{
        MessageBox(NULL,
                    (LPCTSTR)LoadString(ghInstance, IDS_SMSSENT, 
00), 
                    (LPCTSTR)LoadString(ghInstance, IDS_CAPTION_SUCCESS, 
00),
                    MB_OK);
    }

    
else
    
{
        MessageBox(NULL,
                    (LPCTSTR)LoadString(ghInstance, IDS_ERROR_SMSSEND, 
00), 
                    (LPCTSTR)LoadString(ghInstance, IDS_CAPTION_ERROR, 
00),
                    MB_OK 
| MB_ICONERROR);
    }


    
// clean up
    VERIFY(SUCCEEDED(SmsClose(smshHandle)));
}


榪欐浠g爜鍦ㄤ竴鑸儏鍐典笅鏄繍琛屾紜殑錛屽浜庢墜鏈轟笌鎵嬫満鐨勫彂閫佹槸涓嶅瓨鍦ㄩ棶棰樼殑錛屼絾鏄笌SP鐨勪氦浜掑湪鏌愪簺鐪佸尯灝卞瓨鍦ㄧ煭淇″彂閫佷笉鍑哄幓鐨勬儏鍐點?span lang=EN-US>

涓轟簡鏇村ソ鐨勭悊瑙h繖孌典唬鐮侊紝鎴戜滑鍏堟潵鐔熸?zhèn)変竴涓?span lang=EN-US style="COLOR: black">SmsSendMessage鍙婂悇涓弬鏁般?span lang=EN-US>

SmsSendMessage

鍔熻兘錛?/span>Use the SmsSendMessage function to create and send an Short Message Service (SMS) message.錛堝垱寤哄拰鍙戦佺煭淇★紝浣嗙煭淇″彂閫佸悗騫朵笉淇濆瓨鍒板彂浠剁涓級

鍘熷瀷錛?span lang=EN-US>

HRESULT SmsSendMessage (

const SMS_HANDLE smshHandle, // 璋冪敤SmsOpen鏃惰幏寰楃殑鐭俊鍙ユ焺

const SMS_ADDRESS * const psmsaSMSCAddress, //鎸囧悜鐭俊涓績鍙風(fēng)爜鐨勫湴鍧

const SMS_ADDRESS * const psmsaDestinationAddress, // 鍙戦佺殑鐩殑鍦板潃

const SYSTEMTIME * const pstValidityPeriod, // 鍙戦佹椂闂寸殑鏈夋晥鏈?span lang=EN-US>

const BYTE * const pbData, // 淇℃伅鐨勫唴瀹歸儴鍒?span lang=EN-US>

const DWORD dwDataSize,// 淇℃伅鍐呭鐨勯暱搴?span lang=EN-US>

const BYTE * const pbProviderSpecificData, //榪愯惀鍟嗙殑闄勫姞鏁版嵁

const DWORD dwProviderSpecificDataSize, // 闄勫姞鏁版嵁鐨勯暱搴?span lang=EN-US>

const SMS_DATA_ENCODING smsdeDataEncoding, // 鐭俊緙栫爜

const DWORD dwOptions, // 鍏朵粬閫夐」

SMS_MESSAGE_ID * psmsmidMessageID); // 鐢ㄤ簬寰楀埌緋葷粺鍥炴墽鐨勪俊鎭?span lang=EN-US>

錛堝叿浣撲粙緇嶅彲鏌ョ湅http://msdn.microsoft.com/en-us/library/aa455068.aspx錛?span lang=EN-US>

鍦ㄥ疄闄呭簲鐢ㄤ腑鐭俊鍙戦佷笉鍑哄幓錛屼絾鏄?span lang=EN-US>SmsSendMessage鐨勮繑鍥炲兼槸S_OK鍊箋傚湪涓浜涙枃绔犱腑鏈変漢榪欐牱璁や負鏄煭淇$紪鐮佺殑闂閫犳垚鐨勩?span lang=EN-US>

濡傛灉緙栫爜鏍煎紡涓嶅鍙兘閫犳垚鐭俊涓績緗戝叧鎶婄煭淇$粰鍚炴帀鐨勬儏鍐碉紝紼嬪簭铏界劧璋冪敤鎴愬姛錛屼絾鏄氨鏄洰鏍囧彿鐮佹敹涓嶅埌鐭俊銆傚嚱鏁板弬鏁頒腑鐨勫悗涓変釜鍙傛暟鍙互涓嶇敤鎴栬榛樿鍊奸兘鍙互銆?span lang=EN-US>

璧峰垵鎴戜篃鏄涓鴻繖涓湴鏂歸犳垚鐨勶紝寰堟槸鍏村銆傜煭淇$殑鍥炲鍐呭鎭頒負瀛楁瘝錛屾垜璇互涓虹煭淇″唴瀹規(guī)鏃舵槸7-BIT鐨勭煭娑堟伅錛岀煭淇$綉鍏蟲妸鐭俊緇欏悶鎺変簡錛岄犳垚鐩爣鍙風(fēng)爜鏀朵笉鍒扮煭淇°傚湪緇冧範涓嵈涔熼槾宸槼閿欑殑鎴愬姛浜嗐傚緢楂樺叴鐨勬妸鐞嗙敱褰掑埌浜嗚繖涓湴鏂廣傚茍榪欐牱鎬葷粨錛?/span>SmsSendMessage鍙互鏀寔7-bit鐨?span lang=EN-US>ASCII鐮佺殑鐭秷鎭紝涔熸敮鎸?span lang=EN-US>16-bit鐨?span lang=EN-US>unicode鐨勭煭娑堟伅銆備絾鍐呭涓?span lang=EN-US>ASCII鐨勬椂鍊欙紝鐭俊緙栫爜涓?span lang=EN-US style="COLOR: black"> SMSDE_GSM鎴?span lang=EN-US>SMSDE_OPTIMAL錛屽綋鍐呭涓嶅叏鏄?/span>ASCII鐨勬椂鍊欙紝鐭俊緙栫爜涓?span lang=EN-US style="COLOR: black">SMSDE_GSM鎴?span lang=EN-US>SMSDE_OPTIMAL銆傛墍浠ュ洖澶嶅唴瀹規(guī)敼涓烘眽瀛楀嵆鍙?span lang=EN-US>

浣嗘槸榪欐牱瀵逛箞錛熻搗鍒濇垜璁や負鎴戠殑瑙i噴寰堝悎鐞?span lang=EN-US>.浣嗘槸鎴戝嵈鍙戠幇鎴戠殑涓涓弬鏁頒笌鍘熸潵鐨勭▼搴忎笉涓鏍?span lang=EN-US>.

鏄垜鍦ㄥ皾璇曚腑鏃犳剰淇敼浜嗕竴涓弬鏁?span lang=EN-US>,灝?span lang=EN-US>

tpsd.psMessageClass = PS_MESSAGE_CLASS1;

淇敼涓轟簡

tpsd.psMessageClass = PS_MESSAGE_CLASSUNSPECIFIED;

榪欐槸鍙戦佺煭淇′腑鐨勮繍钀ュ晢鐨勬寚瀹氭暟鎹?/span>TEXT_PROVIDER_SPECIFIC_DATA,瀹冪殑鍙傛暟psMessageClass鏄寚

Text Short Message Service (SMS) messages with the appropriate flag can replace previously received notifications with a similar flag and originating address.

瀹冩湁浠ヤ笅浜斾釜鍊?/span>:

PS_MESSAGE_CLASS0: The message should be displayed immediately but not stored. The MS shall send an acknowledgement to the service center when the message has successfully reached the MS. 錛堣鎺ュ彈鍚庣珛鍗蟲樉紺轟絾涓嶅瓨鍌?/span>(縐頒負闂俊)銆傞渶瑕佸悜SMSC鍙戦佺‘璁や俊鎭傦級

PS_MESSAGE_CLASS1錛?/span>The message should be stored and an acknowledgement should be sent to the Service Center when it is stored.錛堟帴鏀跺悗琚瓨鍌紝涓鏃﹀瓨鍌紝闇瑕佸悜SMSC鍙戦佺‘璁や俊鎭傦級

PS_MESSAGE_CLASS2錛?/span>The message should be transferred to the SMS data field in the subscriber identity module (SIM) before an acknowledgement is sent to the Service Center.

PS_MESSAGE_CLASS3錛?/span>When the message has successfully reached the destination and can be stored, an acknowledgement is sent to the Service Center.

PS_MESSAGE_CLASSUNSPECIFIED錛?/span>The message Class is not set in the outgoing or incoming message. 錛堝鍙戝嚭鎴栨敹鍒扮殑鐭俊涓嶈繘琛岃緗級

 

鍒嗘瀽浠ヤ笂浜斾釜鍊鹼紝鍓嶅洓涓兼湁涓涓叡鍚岀殑鐗圭偣錛岄兘闇瑕佸悜SMSC鍙戦佺‘璁ゃ傝屾渶鍚庝竴涓兼病鏈夎瀹氥?/span>

榪欎釜鍊肩殑鏀瑰姩錛岃В鍐充簡鎴戞墍閬囧埌鐨勯棶棰樸備絾絀跺叾鍘熷洜,鎴戞湁浜涙兂涓嶉氫負浠涔?
    浣嗘槸鍦ㄥ疄闄呭簲鐢ㄤ腑錛屽嚭鐜頒簡
tmail.exe鐨勫紓甯搞備笉鐭ラ亾鏄繖涓肩殑鍙樺姩甯︽潵鐨勯棶棰橈紝榪樻槸瀹為檯妯″潡涓瓨鍦ㄧ殑闂銆傝繕闇瑕佺戶緇爺絀朵竴涓嬨?br>
濡傛灉澶у鏈夌煡閬撶殑,緇欎簺寤鴻鍝?



Sandy 2009-03-10 14:14 鍙戣〃璇勮
]]>
鍏充簬mobile鐨勫唴瀛橀噴鏀?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/05/75612.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Thu, 05 Mar 2009 05:56:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/05/75612.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/75612.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/05/75612.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/75612.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/75612.html</trackback:ping><description><![CDATA[<p>鍓嶉樁孌靛湪璋冪爺mobile涓婄殑鍐呭瓨閲婃斁闂錛屾牴鎹ぇ瀹剁殑寤鴻灝濊瘯浜嗕竴浜涳紝浣嗘槸娌℃湁浠涔堟晥鏋溿?br>浜庢槸璺戝埌MSDN涓婂幓闂浉鍏崇殑闂錛屽緱鍒頒簡涓浜涜В絳斻?br><br>As far as I know, I don't think there is other way to meet your requirement.  Since each mobile application has 32M memory limitation, we have to do the performance manually, like deleting object which is not used and allocating Large Memory Blocks in Large memory Area.<br><br>For more information:<br><a target=_blank><font color=#0072bc>Windows CE .NET Advanced Memory Management</font></a><br><a target=_blank><font color=#0072bc>How the Windows Mobile 5.0 Shell Handles Low Memory Situations</font></a><br><br>鎴戠湅浜嗕竴閮ㄥ垎錛屽湪<a target=_blank><font color=#0072bc><u>How the Windows Mobile 5.0 Shell Handles Low Memory Situations</u></font></a>涓彁鍒幫紝<br></p> <div> <p> </p> <p><a target=_blank><img src="http://blogs.msdn.com/photos/wmshell/images/607242/original.aspx" border=0></a></p> <p> </p> <p><strong>Hibernate</strong></p> <p>This is the amount of memory the shell tries to keep free at all times. If the amount of free memory falls below this value then the low memory check routine will try to free up memory. It will do this by first sending <a >WM_HIBERNATE</a> to all <a >valid</a> applications. When an application receives this message it should try to free as many resources as possible. When the low memory check routine runs again and the amount of free memory is still below the hibernate level then the shell will try to close the least recently used (LRU) application by sending a <a >WM_CLOSE</a> message. If the low memory check routine runs yet again and the amount of free memory is still below the hibernate level then the shell will call <a >TerminateProcess</a> on the LRU application that it last sent the WM_CLOSE message to.</p> </div> <p><br>鎴戝榪欐璇濈殑鐞嗚В鏄細褰撶┖闂插唴瀛樺皬浜嶩ibernate鏃訛紝緋葷粺渚夸細灝濊瘯閲婃斁鍐呭瓨銆傞鍏堜粬浼氬悜鎵鏈夋湁鏁堢殑紼嬪簭鍙戦乄M_HIBERNATE銆傚簲鐢ㄧ▼搴忔敹鍒拌娑堟伅鍚庯紝浼氬敖閲忛噴鏀捐祫婧愭潵閲婃斁鍐呭瓨銆傚鏋滆繕浣庝簬榪欎釜鍊肩殑璇濓紝灝嗗彂閫乄M_CLOSE娑堟伅緇欐渶榪戝緢灝戜嬌鐢ㄧ殑紼嬪簭銆傚鏋滆繕浣庝簬璇ュ肩殑錛屽氨寮鴻鍏抽棴璇ョ▼搴忎簡銆?br><br>榪欎釜鏂規(guī)硶浼間箮鏈夋晥錛屼絾鏄敤鎴峰啀璧鋒潵紼嬪簭鐨勮瘽錛岃繕鏄竴鏍風(fēng)殑鏁堟灉錛屽茍涓嶆槸杈懼埌浜嗕粈涔堥噴鏀懼唴瀛樼殑鏁堟灉銆傚浣曡褰曟渶榪戝緢灝戜嬌鐢ㄧ殑紼嬪簭錛岃繖涓槸涓嶆槸鏈変粈涔堟柟娉曡幏寰楀憿錛?br><br>灝卞彲浠ュ儚緋葷粺鎻愮ず鐨勯偅鏍鳳紝鍐呭瓨涓嶈凍錛岃閲婃斁涓浜涘唴瀛樸傛墜宸ュ仛涓浜涙瘮杈冨ソ銆?br><br>涔熺湅浜嗕竴浜涚浉榪戠殑紼嬪簭鐨勫仛娉曪紝浼間箮鏁堟灉涔熸病鏈夊ぇ瀹惰鐨勯偅涔堝ソ銆?br><br>鍦?a target=_blank><font color=#0072bc><u>How the Windows Mobile 5.0 Shell Handles Low Memory Situations</u></font></a>鐨勬渶鍚庯紝榪欐牱鍐欑殑<br></p> <p class=MsoNormal style="MARGIN: 0in 0in 0pt"><strong>What can my Application do?</strong></p> <p class=MsoNormal style="MARGIN: 0in 0in 0pt">The best thing your application can do when faced with a low memory situation is to play nicely with the rest of the device. <br><br>1銆両f your application receives a <a >WM_HIBERNATE</a> message free up any resources not absolutely required. <br>2銆両f you are planning on allocating a large amount of memory (or if a large allocation fails) you should call <a >SHCloseApps</a>, which will invoke the shell low memory check routine and will try to ensure that enough free memory exists. See below for an example:<o:p><span style="FONT-FAMILY: 'Courier New'; mso-bidi-font-weight: bold"><font size=2></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">#define</span><span style="COLOR: #000000"> MIN_MEMORY_TO_RUN 2*1024*1024</span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>MEMORYSTATUS mst;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>mst.dwLength  </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">sizeof</span><span style="COLOR: #000000">(MEMORYSTATUS);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>GlobalMemoryStatus(</span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">mst);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>If (mst.dwAvailPhys </span><span style="COLOR: #000000"><</span><span style="COLOR: #000000"> MIN_MEMORY_TO_RUN)<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img id=Codehighlighter1_166_349_Open_Image onclick="this.style.display='none'; Codehighlighter1_166_349_Open_Text.style.display='none'; Codehighlighter1_166_349_Closed_Image.style.display='inline'; Codehighlighter1_166_349_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_166_349_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_166_349_Closed_Text.style.display='none'; Codehighlighter1_166_349_Open_Image.style.display='inline'; Codehighlighter1_166_349_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_166_349_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_166_349_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Try to free memory by asking Shell to shutdown apps</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">SHCloseApps(MIN_MEMORY_TO_RUN))<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img id=Codehighlighter1_275_349_Open_Image onclick="this.style.display='none'; Codehighlighter1_275_349_Open_Text.style.display='none'; Codehighlighter1_275_349_Closed_Image.style.display='inline'; Codehighlighter1_275_349_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_275_349_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_275_349_Closed_Text.style.display='none'; Codehighlighter1_275_349_Open_Image.style.display='inline'; Codehighlighter1_275_349_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_275_349_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_275_349_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Handle the case where memory could not be freed</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        …<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span></div> <p></span></span></font></span></o:p><o:p></p> <br>涓撻棬鏌ヤ簡涓涓?a >SHCloseApps</a>鐨勭敤娉?br><strong>鍘熷瀷錛欱OOL <font style="BACKGROUND-COLOR: #3399fe" color=#ffffff>SHCloseApps</font>(</strong><strong>  DWORD </strong><em><a class=synParam onclick=showTip(this) href=""><u><font color=#0000ff>dwMemSought</font></u></a></em><strong>);<br>鍔熻兘錛?/strong>This function tries to free up memory for an application. If necessary, the shell closes down other applications by sending <a href="http://m.shnenglu.com/SpringSnow/admin/href_cetemp=" ?><u><font color=#0000ff>dwMemSought</font></u></a></em><strong>);<br>鍔熻兘錛?/strong>This function tries to free up memory for an application. If necessary, the shell closes down other applications by sending <a href="mk:@MSITStore:F:\淇濆瓨璧勬枡\Magneto%20Documentation%20September%2027,%202005.chm::/html/wce50lrfwmclose.htm">WM_CLOSE</a> messages.<br>鍙傛暟錛?a class=synParam onclick=showTip(this) href=""><u><font color=#0000ff><em>dwMemSought</em></font></u></a> Specifies, in bytes, the amount of memory to be freed.<br><br>閫氳繃浜嗚В<a href="http://m.shnenglu.com/SpringSnow/admin/href_cetemp=" ?><u><font color=#0000ff><em>dwMemSought</em></font></u></a> Specifies, in bytes, the amount of memory to be freed.<br><br>閫氳繃浜嗚В<a >SHCloseApps</a>錛屾垜浠氨鏄庣櫧浜嗕笂闈㈤偅孌典唬鐮佷粈涔堟剰鎬濅簡銆?br><br>鐪嬫潵錛屽唴瀛橀噴鏀懼茍涓嶆槸鐪熸鎰忎箟涓婄殑鍐呭瓨鏁寸悊錛岀湅鏉ユ垜鏈夌殑鍦版柟璇В浜嗭紒</o:p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/75612.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-05 13:56 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/05/75612.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>wcsicmp 瀛楃涓叉瘮杈?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/03/03/75443.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 03 Mar 2009 10:49:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/03/03/75443.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/75443.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/03/03/75443.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/75443.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/75443.html</trackback:ping><description><![CDATA[浠婂ぉ鍦ㄥ啓鐨勭▼搴忕殑鏃跺?閬囧埌瀛楃涓叉瘮杈?<br><br>浣嗘槸瀛楃涓插彲鑳戒細鏈夊ぇ灝忓啓鐨勫尯鍒?姝ゆ椂鎬庝箞鍔炲憿?蹇界暐澶у皬鍐欒繘琛屾瘮杈?<br><br>鍒╃敤wcsicmp灝辨瘮杈冨ソ, 瀹冨皢瀛楃涓茶漿鎹㈡垚灝忓啓瀛楃涓茶繘琛屾瘮杈?榪欐牱灝卞拷鐣ヤ簡澶у皬鍐欑殑鎯呭喌. <img src ="http://m.shnenglu.com/SpringSnow/aggbug/75443.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-03-03 18:49 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/03/03/75443.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐤戦棶: 濡備綍閲婃斁鍐呭瓨??http://m.shnenglu.com/SpringSnow/archive/2009/02/23/74694.htmlSandySandyMon, 23 Feb 2009 11:18:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/02/23/74694.htmlhttp://m.shnenglu.com/SpringSnow/comments/74694.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/02/23/74694.html#Feedback6http://m.shnenglu.com/SpringSnow/comments/commentRss/74694.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/74694.html
榪欓噷,鎴戜笉鏄畝鍗曠殑new鍚庤delete.鏄浜庣郴緇熻岃█,鎴戞庝箞鍋氬埌閲婃斁鍐呭瓨鍛?璁╃郴緇熺殑鍙敤鍐呭瓨鍙樺ぇ.浠庣綉涓婁篃鐪嬪埌浜嗚澶氶噴鏀懼唴瀛樼殑杞歡,寰堟儕寮傚畠浠槸濡備綍鍋氬埌鐨勫憿?

鏈変漢寤鴻鎴戠敵璇蜂竴澶у潡鎺т歡,緋葷粺涓嶅鍒嗛厤浜?浼氬紩璧峰畠鑷繁鍘繪暣鐞嗗唴瀛?璇曚簡涓涓?浼間箮鏁堟灉涓嶆槸寰堝ソ.
榪樻湁浜哄緩璁?榪欎箞鐢?鍚戞墍鏈夌獥鍙e彂閫佷竴涓猈M_HIBERNAT娑堟伅.
PostMessage(HWND_BROADCAST, WM_HIBERNATE, 0, 0);
浼間箮鏁堟灉涔熶笉鏄緢濂?

鏈夋病鏈夊緢濂界殑鏂規(guī)硶澶勭悊榪欎釜闂鍛?

澶у鐭ラ亾鐨勮瘽,鎸囩偣涓涓嬪晩!

涓囧垎鎰熻阿!

Sandy 2009-02-23 19:18 鍙戣〃璇勮
]]>
Windows鏍稿績緙栫▼錛氱涓绔犻敊璇鐞嗗涔犵瑪璁?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/02/20/74350.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Thu, 19 Feb 2009 16:24:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/02/20/74350.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/74350.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/02/20/74350.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/74350.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/74350.html</trackback:ping><description><![CDATA[<p>      榪囧勾鍓嶏紝浠巆hina-pub涔扮殑銆備竴鐩翠篃娌℃湁瀹変笅蹇冩潵璇匯傜湅浠婂勾鎵懼伐浣滅殑澧冨喌錛屼篃涓嶅緱涓嶆姄鎶婄揣浜嗐備篃鎰夸笌c++鍗氬鐨勫悇浣嶆湅鍙嬪垎浜垜鐨勫涔犲績寰椼?br>       姝ュ叆涓婚銆?br><br>         榪欎竴绔犲紑綃囦粙緇嶄簡windows鍑芥暟鐨勫嚑縐嶈繑鍥炲鹼細VOID錛孊OOL錛孒ANDLE錛孭VOID錛孡ONG/DWORD銆傝鎴戜滑鏄庣櫧錛屼粎浠呴氳繃榪斿洖鍊鹼紝鎴戜滑鏄笉鑳芥竻妤氬嚱鏁拌皟鐢ㄤ負浠涔堜細澶辮觸鐨勩?br><br>         windows鍐呴儴錛屽嚱鏁版嫻嬪埌閿欒浼氶噰鐢ㄤ粈涔堟満鍒跺憿錛熷畠鏄噰鐢?#8220;綰跨▼鏈湴瀛樺偍鍖?#8221;鐨勬満鍒舵潵璁茬浉搴旂殑閿欒浠g爜涓?#8220;涓昏皟綰跨▼”鍏寵仈鍒頒竴璧楓傚畠鍙互浣夸笉鍚岀殑綰跨▼鑳界嫭绔嬭繍琛岋紝涓嶄細鍑虹幇鐩鎬簰騫叉壈瀵規(guī)柟鐨勯敊璇唬鐮佺殑鎯呭喌銆?br><br>         鍑芥暟榪斿洖鐨勬椂鍊欙紝鍏惰繑鍥炲間細鎸囧嚭宸插彂鐢熺殑涓涓敊璇?br><br>         鎴戜滑鏌ョ湅鍏蜂綋鏄粈涔堥敊璇紝鍦ㄧ浉搴旂殑鍑芥暟鎵ц瀹屾垚鍚庤皟鐢℅etLastError()鍗沖彲銆?br><br>         windows涓紝閿欒鏈変笁縐嶈〃紺猴細<br>         涓涓秷鎭疘D錛堝ERROR_PATH_NOT_FOUND錛?br>            娑堟伅鏂囨湰錛堝the system cannot find the path specified錛?br>         涓涓紪鍙鳳紙灝介噺閬垮厤浣跨敤錛?br><br>         璋冭瘯紼嬪簭鐨勬椂鍊欙紝鎴戜滑鍙互閰嶇疆watch紿楀彛錛岃瀹冨緇堟樉紺虹嚎紼嬬殑涓婁竴涓敊璇唬鐮佸拰閿欒鐨勬枃鏈弿榪般傚$err,hr銆俬r鏄鏄劇ず閿欒浠g爜鐨勬秷鎭枃鏈備笉榪囨垜鍦╳indows mobile鐨勭幆澧冧笅娌℃湁鎴愬姛錛屾病鏈夊紕娓呮涓轟粈涔堛?br><br>         閭d箞鎴戜滑鎬庝箞鍦ㄨ嚜宸辯殑紼嬪簭涓樉紺烘秷鎭枃鏈憿錛熸枃绔犱粙緇嶄簡鍒╃敤FormatMessage鍑芥暟銆傝繖閲屾垜涔熶粙緇嶄竴涓嬭繖涓嚱鏁扮殑鐢ㄦ硶錛?br>         錛堜笅闈㈢殑浠嬬粛鎽樿嚜錛?a href="http://m.shnenglu.com/bidepan2023/archive/2008/02/03/42433.html">http://m.shnenglu.com/bidepan2023/archive/2008/02/03/42433.html</a>錛?br>         <span style="COLOR: #2000ff">DWORD FormatMessage(</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             DWORD dwFlags,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             LPCVOID lpSource,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             DWORD dwMessageId,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             DWORD dwLanguageId,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             LPTSTR lpBuffer,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             DWORD nSize,</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             va_list* Arguments</span><br style="COLOR: #2000ff"><span style="COLOR: #2000ff">             );</span><br><br><span style="FONT-WEIGHT: bold">         dwFlags:</span><br>         # FORMAT_MESSAGE_ALLOCATE_BUFFER // 姝ゅ嚱鏁頒細鍒嗛厤鍐呭瓨浠ュ寘鍚弿榪板瓧涓層?br>         # FORMAT_MESSAGE_FROM_SYSTEM,  // 鍦ㄧ郴緇熺殑id鏄犲皠琛ㄤ腑瀵繪壘鎻忚堪瀛椾覆<br>         # FORMAT_MESSAGE_FROM_HMODULE  // 鍦ㄥ叾浠栬祫婧愭ā鍧椾腑瀵繪壘鎻忚堪瀛椾覆<br>         # FORMAT_MESSAGE_FROM_STRING   // 娑堟伅ID鏄釜瀛椾覆錛屼笉鏄釜DWORD<br>         #FORMAT_MESSAGE_IGNORE_INSERTS // 鍏佽鎴戜滑鑾峰緱鍚湁%鍗犱綅絎︾殑娑堟伅錛屼笉浼犻掕繖涓爣蹇楋紝灝卞繀欏誨湪Arguments鍙傛暟涓彁渚涜繖浜涘崰浣嶇鐨勪俊鎭?br>         閫氬父涓猴細FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM<br><br><span style="FONT-WEIGHT: bold">         lpSource:</span><br>         # 鎸囧畾浜咶ORMAT_MESSAGE_FROM_HMODULE鐨勮瘽錛屾鍙傛暟琛ㄧず妯″潡鐨凥ANDLE<br>         # 鎸囧畾浜咶ORMAT_MESSAGE_FROM_STRING鐨勮瘽錛屾鍙傛暟琛ㄧずid瀛椾覆<br>         閫氬父涓猴細NULL<br><br><span style="FONT-WEIGHT: bold">         dwMessageId:</span><br>         娑堟伅ID;濡傛灉鎸囧畾FORMAT_MESSAGE_FROM_STRING錛屽皢琚拷鐣ャ?br><br style="FONT-WEIGHT: bold"><span style="FONT-WEIGHT: bold">         dwLanguageId:</span><br>         娑堟伅鎻忚堪鎵鐢ㄧ殑璇█<br>         閫氬父涓猴細0琛ㄧず鑷姩閫夋嫨<br><br><span style="FONT-WEIGHT: bold">         lpBuffer:</span><br>         #濡傛灉鏈寚瀹欶ORMAT_MESSAGE_ALLOCATE_BUFFER錛屽垯涓鴻嚜宸辨彁渚涚殑緙撳啿鍖?br>         #鍚﹀垯涓虹郴緇烲ocalAlloc鍒嗛厤錛岄渶瑕佽鐢ㄦ埛LocalFree<br><br><span style="FONT-WEIGHT: bold">         nSize:</span><br>         #濡傛灉鏈寚瀹欶ORMAT_MESSAGE_ALLOCATE_BUFFER錛屽垯涓鴻嚜宸辨彁渚涚殑緙撳啿鍖哄ぇ灝?br>         #鍚﹀垯涓虹郴緇烲ocalAlloc鍒嗛厤涔嬫渶灝忕紦鍐插尯澶у皬<br><br><span style="FONT-WEIGHT: bold">         Arguments:</span><br>         閫氬父涓嶄嬌鐢?</p> <p><br>渚嬪瓙錛?br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> ShowError()<br><img id=Codehighlighter1_17_942_Open_Image onclick="this.style.display='none'; Codehighlighter1_17_942_Open_Text.style.display='none'; Codehighlighter1_17_942_Closed_Image.style.display='inline'; Codehighlighter1_17_942_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_17_942_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_17_942_Closed_Text.style.display='none'; Codehighlighter1_17_942_Open_Image.style.display='inline'; Codehighlighter1_17_942_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_17_942_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_17_942_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    DWORD dwError </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> GetLastError();<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    HLOCAL hlocal </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> NULL;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Use the default system locale since we look for Windows messages.<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Note: this MAKELANGID combination has 0 as value</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">    DWORD systemLocale </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    BOOL fOk </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> FormatMessage(<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        FORMAT_MESSAGE_FROM_SYSTEM </span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"> FORMAT_MESSAGE_IGNORE_INSERTS </span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        FORMAT_MESSAGE_ALLOCATE_BUFFER, <br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        NULL, dwError, systemLocale, <br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        (PTSTR) </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">hlocal, </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">, NULL);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img id=Codehighlighter1_464_833_Open_Image onclick="this.style.display='none'; Codehighlighter1_464_833_Open_Text.style.display='none'; Codehighlighter1_464_833_Closed_Image.style.display='inline'; Codehighlighter1_464_833_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_464_833_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_464_833_Closed_Text.style.display='none'; Codehighlighter1_464_833_Open_Image.style.display='inline'; Codehighlighter1_464_833_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (</span><span style="COLOR: #000000">!</span><span style="COLOR: #000000">fOk) </span><span id=Codehighlighter1_464_833_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_464_833_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        </span><span style="COLOR: #008000">//</span><span style="COLOR: #008000"> Is it a network-related error?</span><span style="COLOR: #008000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top></span><span style="COLOR: #000000">        HMODULE hDll </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> LoadLibraryEx(TEXT(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">netmsg.dll</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">), NULL, <br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            DONT_RESOLVE_DLL_REFERENCES);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img id=Codehighlighter1_614_830_Open_Image onclick="this.style.display='none'; Codehighlighter1_614_830_Open_Text.style.display='none'; Codehighlighter1_614_830_Closed_Image.style.display='inline'; Codehighlighter1_614_830_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_614_830_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_614_830_Closed_Text.style.display='none'; Codehighlighter1_614_830_Open_Image.style.display='inline'; Codehighlighter1_614_830_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>        </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (hDll </span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000"> NULL) </span><span id=Codehighlighter1_614_830_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_614_830_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            fOk </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> FormatMessage(<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                FORMAT_MESSAGE_FROM_HMODULE </span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"> FORMAT_MESSAGE_IGNORE_INSERTS </span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                FORMAT_MESSAGE_ALLOCATE_BUFFER,<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                hDll, dwError, systemLocale,<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>                (PTSTR) </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">hlocal, </span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">, NULL);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>            FreeLibrary(hDll);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>        }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    </span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000"> (fOk </span><span style="COLOR: #000000">&&</span><span style="COLOR: #000000"> (hlocal </span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000"> NULL))<br><img id=Codehighlighter1_867_940_Open_Image onclick="this.style.display='none'; Codehighlighter1_867_940_Open_Text.style.display='none'; Codehighlighter1_867_940_Closed_Image.style.display='inline'; Codehighlighter1_867_940_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><img id=Codehighlighter1_867_940_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_867_940_Closed_Text.style.display='none'; Codehighlighter1_867_940_Open_Image.style.display='inline'; Codehighlighter1_867_940_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedSubBlock.gif" align=top>    </span><span id=Codehighlighter1_867_940_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_867_940_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        OutputDebugString((PCTSTR) LocalLock(hlocal));<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>        LocalFree(hlocal);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>    }</span></span><span style="COLOR: #000000"><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div> <p><br><br>      榪欎釜鏄功涓殑渚嬪瓙鐨勪唬鐮侊紝鎴戝彧鏄皢瀹冨綊緇撲負浜嗕竴涓嚱鏁癊rrorShow銆傝繖鏍鋒垜浠湪涓涓嚱鏁扮殑鍚庨潰璋冪敤錛岀洿鎺ュ彲浠ョ煡閬撻敊璇殑鍘熷洜銆備笉榪囩幆澧冩垜鏄湪smart device 鐨凞EBUG鐜涓嬭皟鏃剁殑錛孫utputDebugString浼氳緭鍑虹浉搴旂殑瀛楃涓層?br><br>      榪欎釜渚嬪瓙涓悓鏃跺睍紺轟簡FormatMessage鐨勪袱縐嶇敤娉曘傝瀵熶竴涓嬬浜屼釜鍙傛暟灝辨槑鐧戒簡銆?br><br>      visual studio 涔熸彁渚涗簡涓涓煡璇㈤敊璇殑灝忓伐鍏鳳紝涓篍rror Lookup銆傞氳繃浠ヤ笂鐨勭ず渚嬶紝鎴戜滑灝辯煡閬撳叾鐩稿簲鐨勫伐浣滃師鐞嗗憿銆?br><br>      榪欐湰涔︾殑婧愮爜鐨勪笅杞藉湴鍧錛?a >http://wintellect.com/Books.aspx</a> <br>      澶у濡傛灉瀵箇indows 緙栫▼鎰熷叴瓚g殑璇濓紝涓嶅Θ涓嬫潵鐪嬬湅銆?br></p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/74350.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-02-20 00:24 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/02/20/74350.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏂囦歡鏄犲皠鐨勫涔?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/02/17/74017.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 17 Feb 2009 03:55:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/02/17/74017.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/74017.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/02/17/74017.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/74017.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/74017.html</trackback:ping><description><![CDATA[鏈榪戝湪璋冪爺鏂囦歡鐩稿叧鐨勪笢瑗?濡侻D5鍊?浣嗘槸鏂囦歡鏈夊彲鑳藉緢澶?鎵浠ユ垜浠笉鑳戒竴嬈¤鍑烘枃浠?鏈変漢寤鴻鐢ㄦ枃浠舵槧灝?鏌ヤ簡涓涓嬫枃浠舵槧灝勭殑鍐呭.璁板綍涓嬫潵.<br>銆鎽樿嚜:http://www.yesky.com/405/1756405.shtml<br><br><strong>        鎽樿錛?/strong> 鏈枃閫氳繃鍐呭瓨鏄犲皠鏂囦歡鐨勪嬌鐢ㄦ潵瀵瑰ぇ灝哄鏂囦歡榪涜璁塊棶鎿嶄綔錛屽悓鏃朵篃瀵瑰唴瀛樻槧灝勬枃浠剁殑鐩稿叧姒傚康鍜屼竴鑸紪紼嬭繃紼嬩綔浜嗚緝涓鴻緇嗙殑浠嬬粛銆?br><br>銆銆鍏抽敭璇嶏細 鍐呭瓨鏄犲皠鏂囦歡錛涘ぇ鏂囦歡澶勭悊錛涘垎閰嶇矑搴?<br><br>銆銆<strong>寮曡█</strong><br><br>銆銆鏂囦歡鎿嶄綔鏄簲鐢?a class=bluekey target=_blank><font color=#204890>紼嬪簭</font></a>鏈涓哄熀鏈殑鍔熻兘涔嬩竴錛學(xué)in32 API鍜孧FC鍧囨彁渚涙湁鏀寔鏂囦歡澶勭悊鐨勫嚱鏁板拰綾伙紝甯哥敤鐨勬湁Win32 API鐨凜reateFile()銆乄riteFile()銆丷eadFile()鍜孧FC鎻愪緵鐨凜File綾葷瓑銆備竴鑸潵璇達紝浠ヤ笂榪欎簺鍑芥暟鍙互婊¤凍澶у鏁板満鍚堢殑瑕佹眰錛屼絾鏄浜庢煇浜涚壒孌婂簲鐢ㄩ鍩熸墍闇瑕佺殑鍔ㄨ緞鍑犲崄GB銆佸嚑鐧綠B銆佷箖鑷沖嚑TB鐨勬搗閲忓瓨鍌紝鍐嶄互閫氬父鐨勬枃浠跺鐞嗘柟娉曡繘琛屽鐞嗘樉鐒舵槸琛屼笉閫氱殑銆傜洰鍓嶏紝瀵逛簬涓婅堪榪欑澶ф枃浠剁殑鎿嶄綔涓鑸槸浠ュ唴瀛樻槧灝勬枃浠剁殑鏂瑰紡鏉ュ姞浠ュ鐞嗙殑錛屾湰鏂囦笅闈㈠皢閽堝榪欑Windows鏍稿績緙栫▼鎶鏈睍寮璁ㄨ銆?br><br>銆銆<strong>鍐呭瓨鏄犲皠鏂囦歡姒傝堪</strong><br><br>銆銆鍐呭瓨鏂囦歡鏄犲皠涔熸槸Windows鐨勪竴縐嶅唴瀛樼鐞嗘柟娉曪紝鎻愪緵浜嗕竴涓粺涓鐨勫唴瀛樼鐞嗙壒寰侊紝浣垮簲鐢ㄧ▼搴忓彲浠ラ氳繃鍐呭瓨鎸囬拡瀵圭鐩樹笂鐨勬枃浠惰繘琛岃闂紝鍏惰繃紼嬪氨濡傚悓瀵瑰姞杞戒簡鏂囦歡鐨勫唴瀛樼殑璁塊棶銆傞氳繃鏂囦歡鏄犲皠榪欑浣跨鐩樻枃浠剁殑鍏ㄩ儴鎴栭儴鍒嗗唴瀹逛笌榪涚▼铏氭嫙鍦板潃絀洪棿鐨勬煇涓尯鍩熷緩绔嬫槧灝勫叧鑱旂殑鑳藉姏錛屽彲浠ョ洿鎺ュ琚槧灝勭殑鏂囦歡榪涜璁塊棶錛岃屼笉蹇呮墽琛屾枃浠禝/O鎿嶄綔涔熸棤闇瀵規(guī)枃浠跺唴瀹硅繘琛岀紦鍐插鐞嗐傚唴瀛樻枃浠舵槧灝勭殑榪欑鐗規(guī)ф槸闈炲父閫傚悎浜庣敤鏉ョ鐞嗗ぇ灝哄鏂囦歡鐨勩?br><br>銆銆鍦ㄤ嬌鐢ㄥ唴瀛樻槧灝勬枃浠惰繘琛孖/O澶勭悊鏃訛紝緋葷粺瀵規(guī)暟鎹殑浼犺緭鎸夐〉闈㈡潵榪涜銆傝嚦浜庡唴閮ㄧ殑鎵鏈夊唴瀛橀〉闈㈠垯鏄敱铏氭嫙鍐呭瓨綆$悊鍣ㄦ潵璐熻矗綆$悊錛岀敱鍏舵潵鍐沖畾鍐呭瓨欏甸潰浣曟椂琚垎欏靛埌紓佺洏錛屽摢浜涢〉闈㈠簲璇ヨ閲婃斁浠ヤ究涓哄叾瀹冭繘紼嬫彁渚涚┖闂茬┖闂達紝浠ュ強姣忎釜榪涚▼鍙互鎷ユ湁瓚呭嚭瀹為檯鍒嗛厤鐗╃悊鍐呭瓨涔嬪鐨勫灝戜釜欏甸潰絀洪棿絳夌瓑銆傜敱浜庤櫄鎷熷唴瀛樼鐞嗗櫒鏄互涓縐嶇粺涓鐨勬柟寮忔潵澶勭悊鎵鏈夌鐩業(yè)/O鐨勶紙浠ラ〉闈負鍗曚綅瀵瑰唴瀛樻暟鎹繘琛岃鍐欙級錛屽洜姝よ繖縐嶄紭鍖栦嬌鍏舵湁鑳藉姏浠ヨ凍澶熷揩鐨勯熷害鏉ュ鐞嗗唴瀛樻搷浣溿?br><br>銆銆浣跨敤鍐呭瓨鏄犲皠鏂囦歡鏃舵墍榪涜鐨勪換浣曞疄闄匢/O浜や簰閮芥槸鍦ㄥ唴瀛樹腑榪涜騫朵互鏍囧噯鐨勫唴瀛樺湴鍧褰㈠紡鏉ヨ闂傜鐩樼殑鍛ㄦ湡鎬у垎欏典篃鏄敱<a class=bluekey target=_blank><font color=#204890>鎿嶄綔緋葷粺</font></a>鍦ㄥ悗鍙伴殣钄藉疄鐜扮殑錛屽搴旂敤紼嬪簭鑰岃█鏄畬鍏ㄩ忔槑鐨勩傚唴瀛樻槧灝勬枃浠剁殑榪欑鐗規(guī)у湪榪涜澶ф枃浠剁殑紓佺洏浜嬪姟鎿嶄綔鏃跺皢鑾峰緱寰堥珮鐨勬晥鐩娿?br><br>銆銆闇瑕佽鏄庣殑鏄紝鍦ㄧ郴緇熺殑姝e父鐨勫垎欏墊搷浣滆繃紼嬩腑錛屽唴瀛樻槧灝勬枃浠跺茍闈炰竴鎴愪笉鍙樼殑錛屽畠?yōu)畣琚畾鏈熸洿鏂般傚鏋滅郴緇熻浣跨敤鐨勯〉闈㈢洰鍓嶆琚煇涓唴瀛樻槧灝勬枃浠舵墍鍗犵敤錛岀郴緇熷皢閲婃斁姝ら〉闈紝濡傛灉欏甸潰鏁版嵁灝氭湭淇濆瓨錛岀郴緇熷皢鍦ㄩ噴鏀鵑〉闈箣鍓嶈嚜鍔ㄥ畬鎴愰〉闈㈡暟鎹埌紓佺洏鐨勫啓鍏ャ?br><br>銆銆瀵逛簬浣跨敤欏佃櫄鎷熷瓨鍌ㄧ鐞嗙殑Windows鎿嶄綔緋葷粺錛屽唴瀛樻槧灝勬枃浠舵槸鍏跺唴閮ㄥ凡鏈夌殑鍐呭瓨綆$悊緇勪歡鐨勪竴涓墿鍏呫傜敱鍙墽琛屼唬鐮侀〉闈㈠拰鏁版嵁欏甸潰緇勬垚鐨勫簲鐢ㄧ▼搴忓彲鏍規(guī)嵁闇瑕佺敱鎿嶄綔緋葷粺鏉ュ皢榪欎簺欏甸潰鎹㈣繘鎴栨崲鍑哄唴瀛樸傚鏋滃唴瀛樹腑鐨勬煇涓〉闈笉鍐嶉渶瑕侊紝鎿嶄綔緋葷粺灝嗘挙娑堟欏甸潰鍘熸嫢鐢ㄨ呭瀹冪殑鎺у埗鏉冿紝騫墮噴鏀捐欏甸潰浠ヤ緵鍏跺畠榪涚▼浣跨敤銆傚彧鏈夊湪璇ラ〉闈㈠啀嬈℃垚涓洪渶姹傞〉闈㈡椂錛屾墠浼氫粠紓佺洏涓婄殑鍙墽琛屾枃浠墮噸鏂拌鍏ュ唴瀛樸傚悓鏍峰湴錛屽綋涓涓繘紼嬪垵濮嬪寲鍚姩鏃訛紝鍐呭瓨鐨勯〉闈㈠皢鐢ㄦ潵瀛樺偍璇ュ簲鐢ㄧ▼搴忕殑闈欐併佸姩鎬佹暟鎹紝涓鏃﹀瀹冧滑鐨勬搷浣滆鎻愪氦錛岃繖浜涢〉闈篃灝嗚澶囦喚鑷崇郴緇熺殑欏甸潰鏂囦歡錛岃繖涓庡彲鎵ц鏂囦歡琚敤鏉ュ浠芥墽琛屼唬鐮侀〉闈㈢殑榪囩▼鏄緢綾諱技鐨勩傚浘1灞曠ず浜嗕唬鐮侀〉闈㈠拰鏁版嵁欏甸潰鍦ㄧ鐩樺瓨鍌ㄥ櫒涓婄殑澶囦喚榪囩▼錛?br><br><img onerror="this.src='http://www.yesky.com/image20010518/95741.jpg';" hspace=3 src="http://www.yesky.com/image20010518/95741.jpg" align=center vspace=1 border=1><br>鍥? 榪涚▼鐨勪唬鐮侀〉銆佹暟鎹〉鍦ㄧ鐩樺瓨鍌ㄥ櫒涓婄殑澶囦喚<br><br>銆銆鏄劇劧錛屽鏋滃彲浠ラ噰鍙栧悓涓縐嶆柟寮忔潵澶勭悊浠g爜鍜屾暟鎹〉闈紝鏃犵枒灝嗕細鎻愰珮紼嬪簭鐨勬墽琛屾晥鐜囷紝鑰屽唴瀛樻槧灝勬枃浠剁殑浣跨敤鎭版伆鍙互婊¤凍姝ら渶姹傘?br><strong>瀵瑰ぇ鏂囦歡鐨勭鐞?br><br></strong>銆銆鍐呭瓨鏄犲皠鏂囦歡瀵硅薄鍦ㄥ叧闂璞′箣鍓嶅茍娌℃湁蹇呰鎾ら攢鍐呭瓨鏄犲皠鏂囦歡鐨勬墍鏈夎鍥俱傚湪瀵硅薄琚噴鏀句箣鍓嶏紝鎵鏈夌殑鑴忛〉闈㈠皢鑷姩鍐欏叆紓佺洏銆傞氳繃CloseHandle錛堬級鍏抽棴鍐呭瓨鏄犲皠鏂囦歡瀵硅薄錛屽彧鏄噴鏀捐瀵硅薄錛屽鏋滃唴瀛樻槧灝勬枃浠朵唬琛ㄧ殑鏄鐩樻枃浠訛紝閭d箞榪橀渶瑕佽皟鐢ㄦ爣鍑嗘枃浠禝/O鍑芥暟鏉ュ皢鍏跺叧闂傚湪澶勭悊澶ф枃浠跺鐞嗘椂錛屽唴瀛樻槧灝勬枃浠跺皢琛ㄧず鍑哄崜瓚婄殑浼樺娍錛屽彧闇瑕佹秷鑰楁瀬灝戠殑鐗╃悊璧勬簮錛屽緋葷粺鐨勫獎鍝嶅井涔庡叾寰備笅闈㈠厛緇欏嚭鍐呭瓨鏄犲皠鏂囦歡鐨勪竴鑸紪紼嬫祦紼嬫鍥撅細<br><br><img onerror="this.src='http://www.yesky.com/image20010518/95743.jpg';" hspace=3 src="http://www.yesky.com/image20010518/95743.jpg" align=center vspace=1 border=1><br>鍥? 浣跨敤鍐呭瓨鏄犲皠鏂囦歡鐨勪竴鑸祦紼?br><br>銆銆鑰屽湪鏌愪簺鐗規(guī)畩琛屼笟錛岀粡甯歌闈㈠鍗佸嚑GB涔冭嚦鍑犲崄GB瀹歸噺鐨勫法鍨嬫枃浠訛紝鑰屼竴涓?2浣嶈繘紼嬫墍鎷ユ湁鐨勮櫄鎷熷湴鍧絀洪棿鍙湁232 = 4GB錛屾樉鐒朵笉鑳戒竴嬈″皢鏂囦歡鏄犲儚鍏ㄩ儴鏄犲皠榪涙潵銆傚浜庤繖縐嶆儏鍐靛彧鑳戒緷嬈″皢澶ф枃浠剁殑鍚勪釜閮ㄥ垎鏄犲皠鍒拌繘紼嬩腑鐨勪竴涓緝?yōu)畯鐨勫湴鍧絀洪棿銆傝繖闇瑕佸涓婇潰鐨勪竴鑸祦紼嬭繘琛岄傚綋鐨勬洿鏀癸細<br><br>銆銆1錛夋槧灝勬枃浠跺紑澶寸殑鏄犲儚銆?br><br>銆銆2錛夊璇ユ槧鍍忚繘琛岃闂?br><br>銆銆3錛夊彇娑堟鏄犲儚<br><br>銆銆4錛夋槧灝勪竴涓粠鏂囦歡涓殑涓涓洿娣辯殑浣嶇Щ寮濮嬬殑鏂版槧鍍忋?br><br>銆銆5錛夐噸澶嶆楠?錛岀洿鍒拌闂畬鍏ㄩ儴鐨勬枃浠舵暟鎹?br><br>銆銆涓嬮潰緇欏嚭涓孌墊牴鎹鎻忚堪鑰屽啓鍑虹殑瀵瑰ぇ浜?GB鐨勬枃浠剁殑澶勭悊浠g爜錛?br><br> <table width="100%" bgColor=#ffffff> <tbody> <tr> <td>// 閫夋嫨鏂囦歡<br>CFileDialog fileDlg(TRUE, "*.txt", "*.txt", NULL, "鏂囨湰鏂囦歡 (*.txt)|*.txt||", this);<br>fileDlg.m_ofn.Flags |= OFN_FILEMUSTEXIST;<br>fileDlg.m_ofn.lpstrTitle = "閫氳繃鍐呭瓨鏄犲皠鏂囦歡璇誨彇鏁版嵁";<br>if (fileDlg.DoModal() == IDOK)<br>{<br>銆// 鍒涘緩鏂囦歡瀵硅薄<br>銆HANDLE hFile = CreateFile(fileDlg.GetPathName(), GENERIC_READ | GENERIC_WRITE,<br>銆銆銆0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);<br>銆if (hFile == INVALID_HANDLE_VALUE)<br>銆{<br>銆銆TRACE("鍒涘緩鏂囦歡瀵硅薄澶辮觸,閿欒浠g爜:%d\r\n", GetLastError());<br>銆銆return;<br>銆}<br>銆// 鍒涘緩鏂囦歡鏄犲皠瀵硅薄<br>銆HANDLE hFileMap = CreateFileMapping(hFile, NULL, PAGE_READWRITE, 0, 0, NULL);<br>銆if (hFileMap == NULL)<br>銆{<br>銆銆TRACE("鍒涘緩鏂囦歡鏄犲皠瀵硅薄澶辮觸,閿欒浠g爜:%d\r\n", GetLastError());<br>銆銆return;<br>銆}<br>銆// 寰楀埌緋葷粺鍒嗛厤綺掑害<br>銆SYSTEM_INFO SysInfo;<br>銆GetSystemInfo(&SysInfo);<br>銆DWORD dwGran = SysInfo.dwAllocationGranularity;<br>銆// 寰楀埌鏂囦歡灝哄<br>銆DWORD dwFileSizeHigh;<br>銆__int64 qwFileSize = GetFileSize(hFile, &dwFileSizeHigh);<br>銆qwFileSize |= (((__int64)dwFileSizeHigh) << 32);<br>銆// 鍏抽棴鏂囦歡瀵硅薄<br>銆CloseHandle(hFile);<br>銆// 鍋忕Щ鍦板潃 <br>銆__int64 qwFileOffset = 0;<br>銆// 鍧楀ぇ灝?br>銆DWORD dwBlockBytes = 1000 * dwGran;<br>銆if (qwFileSize < 1000 * dwGran)<br>銆銆dwBlockBytes = (DWORD)qwFileSize;<br>銆銆while (qwFileOffset > 0)<br>銆銆{<br>銆銆銆// 鏄犲皠瑙嗗浘<br>銆銆銆LPBYTE lpbMapAddress = (LPBYTE)MapViewOfFile(hFileMap,FILE_MAP_ALL_ACCESS, <br>銆銆銆銆銆銆(DWORD)(qwFileOffset >> 32), (DWORD)(qwFileOffset & 0xFFFFFFFF),<br>銆銆銆銆銆銆dwBlockBytes);<br>銆銆銆if (lpbMapAddress == NULL)<br>銆銆銆{<br>銆銆銆銆TRACE("鏄犲皠鏂囦歡鏄犲皠澶辮觸,閿欒浠g爜:%d\r\n", GetLastError());<br>銆銆銆銆return;<br>銆銆銆}<br>銆銆銆// 瀵規(guī)槧灝勭殑瑙嗗浘榪涜璁塊棶<br>銆銆銆for(DWORD i = 0; i < dwBlockBytes; i++)<br>銆銆銆銆BYTE temp = *(lpbMapAddress + i);<br>銆銆銆銆// 鎾ゆ秷鏂囦歡鏄犲儚<br>銆銆銆銆UnmapViewOfFile(lpbMapAddress);<br>銆銆銆銆// 淇鍙傛暟<br>銆銆銆銆qwFileOffset += dwBlockBytes;<br>銆銆銆銆qwFileSize -= dwBlockBytes;<br>銆銆}<br>銆銆// 鍏抽棴鏂囦歡鏄犲皠瀵硅薄鍙ユ焺<br>銆銆CloseHandle(hFileMap);<br>銆銆AfxMessageBox("鎴愬姛瀹屾垚瀵規(guī)枃浠剁殑璁塊棶");<br>}</td> </tr> </tbody> </table> <br>銆銆鍦ㄦ湰渚嬩腑錛岄鍏堥氳繃GetFileSize錛堬級寰楀埌琚鐞嗘枃浠墮暱搴︼紙64浣嶏級鐨勯珮32浣嶅拰浣?2浣嶅箋傜劧鍚庡湪鏄犲皠榪囩▼涓瀹氭瘡嬈℃槧灝勭殑鍧楀ぇ灝忎負1000鍊嶇殑鍒嗛厤綺掑害錛屽鏋滄枃浠墮暱搴﹀皬浜?000鍊嶇殑鍒嗛厤綺掑害鏃跺垯灝嗗潡澶у皬璁劇疆涓烘枃浠剁殑瀹為檯闀垮害銆傚湪澶勭悊榪囩▼涓敱鏄犲皠銆佽闂佹挙娑堟槧灝勬瀯鎴愪簡涓涓驚鐜鐞嗐傚叾涓紝姣忓鐞嗗畬涓涓枃浠跺潡鍚庨兘閫氳繃鍏抽棴鏂囦歡鏄犲皠瀵硅薄鏉ュ姣忎釜鏂囦歡鍧楄繘琛屾暣鐞嗐侰reateFileMapping錛堬級銆丮apViewOfFile錛堬級絳夊嚱鏁版槸涓撻棬鐢ㄦ潵榪涜鍐呭瓨鏂囦歡鏄犲皠澶勭悊鐢ㄧ殑銆?br><br>銆涓嬮潰鍒嗗埆瀵硅繖浜涘叧閿嚱鏁拌繘琛岃鏄庯細<br><br>銆銆<strong>1錛塁reateFile錛堬級錛?/strong>CreateFile錛堬級鍑芥暟鏄竴涓敤閫旈潪甯稿箍娉涚殑鍑芥暟錛?鍦ㄨ繖閲岀殑鐢ㄦ硶騫舵病鏈変粈涔堢壒孌婄殑鍦版柟錛屼絾鏈夊嚑鐐歸渶瑕佹敞鎰忥細涓鏄闂ā寮忓弬鏁癲wDesiredAccess銆傝鍙傛暟璁劇疆浜嗗鏂囦歡鍐呮牳瀵硅薄鐨勮闂被鍨嬶紝鍏跺厑璁歌緗殑鏉冮檺鍙互涓鴻鏉冮檺GENERIC_READ銆佸啓鏉冮檺GENERIC_WRITE銆佽鍐欐潈闄怗ENERIC_READ | GENERIC_WRITE鍜岃澶囨煡璇㈡潈闄?銆傚湪浣跨敤鏄犲皠鏂囦歡鏃訛紝鍙兘鎵撳紑閭d簺鍏鋒湁鍙璁塊棶鏉冮檺鐨勬枃浠訛紝鍗沖彧鑳藉簲鐢℅ENERIC_READ鍜孏ENERIC_READ | GENERIC_WRITE榪欎袱縐嶇粍鍚堬紱鍙︿竴鐐歸渶瑕佹敞鎰忕殑鏄叡浜ā寮忓弬鏁癲wShareMode銆傝鍙傛暟瀹氫箟浜嗗鏂囦歡鍐呮牳瀵硅薄鐨勫叡浜柟寮忥紝鍏跺彲鑳界殑璁劇疆涓篎ILE_SHARE_READ銆丗ILE_SHARE_WRITE鍜?錛屽茍鍙鍏剁粍鍚堜嬌鐢ㄣ傚叾涓紝璁劇疆涓?鏃朵笉鍏佽鍏變韓瀵硅薄錛汧ILE_SHARE_READ鍜孎ILE_SHARE_WRITE鍒嗗埆涓哄湪瑕佹眰鍙銆佸彧鍐欒闂殑鎯呭喌涓嬫墠鍏佽瀵硅薄鐨勫叡浜?br><br>銆銆鐢變簬閫氳繃鍐呭瓨鏄犲皠鏂囦歡鍙互鍦ㄥ涓繘紼嬮棿鍏變韓鏁版嵁錛屽洜姝ゅ湪榪涜榪欑搴旂敤鏃跺簲褰撹冭檻dwShareMode鍙傛暟璁劇疆瀵硅繍琛岀粨鏋滅殑褰卞搷銆?br><br>銆銆<strong>2錛塁reateFileMapping錛堬級錛?/strong>璇ュ嚱鏁扮殑浣滅敤鏄垱寤轟竴涓枃浠舵槧灝勫唴鏍稿璞★紝浠ュ憡鐭ョ郴緇熸枃浠舵槧灝勫璞¢渶瑕佸澶х殑鐗╃悊瀛樺偍鍣ㄣ傚垱寤哄唴瀛樻槧灝勬枃浠跺璞″緋葷粺璧勬簮鍑犱箮娌℃湁浠涔堝獎鍝嶏紝涔熶笉浼氬獎鍝嶈繘紼嬬殑铏氭嫙鍦板潃絀洪棿銆傞櫎浜嗛渶瑕佺敤鏉ヨ〃紺鴻瀵硅薄鐨勫唴閮ㄨ祫婧愪箣澶栭氬父騫朵笉鐢ㄤ負鍏跺垎閰嶈櫄鎷熷唴瀛橈紝浣嗘槸濡傛灉鍐呭瓨鏄犲皠鏂囦歡瀵硅薄鏄綔鍏變韓鍐呭瓨涔嬬敤鐨勮瘽錛屽氨瑕佸湪鍒涘緩瀵硅薄鏃剁敱緋葷粺涓哄唴瀛樻槧灝勬枃浠剁殑浣跨敤鍦ㄧ郴緇熼〉鏂囦歡涓繚鐣欒凍澶熺殑絀洪棿銆?br><br>銆銆鍑芥暟絎竴涓弬鏁癶File涓烘爣璇嗚鏄犲皠鍒拌繘紼嬬殑鍦板潃絀洪棿鐨勬枃浠剁殑鍙ユ焺銆傝櫧鐒剁敱浜庡唴瀛樻槧灝勬枃浠剁殑鐗╃悊瀛樺偍鍣ㄦ槸鏉ヨ嚜浜庣鐩樹笂鐨勬枃浠訛紝鑰岄潪緋葷粺鐨勯〉鏂囦歡錛屼嬌鍒涘緩鍐呭瓨鏄犲皠鏂囦歡灝卞儚淇濈暀涓涓湴鍧絀洪棿鍖哄煙騫跺皢鐗╃悊瀛樺偍鍣ㄦ彁浜ょ粰璇ュ尯鍩熶竴鏍楓傜浜屼釜鍙傛暟涓烘寚鍚戞枃浠舵槧灝勫唴鏍稿璞$殑SECURITY_ATTRIBUTES緇撴瀯鐨勬寚閽堬紝鐢辨鏉ュ喅瀹氬瓙榪涚▼鑳藉惁緇ф壙寰楀埌榪斿洖鐨勫彞鏌勩傞氬父涓哄叾浼犻扤ULL鍊鹼紝浠ラ粯璁ょ殑<a class=bluekey target=_blank><font color=#204890>瀹夊叏</font></a>灞炴ф潵紱佹榪斿洖鍙ユ焺鐨勮緇ф壙銆?br><br>銆銆鎺ヤ笅鏉ョ殑鍙傛暟鐢ㄤ簬鏂囦歡琚槧灝勫悗璁懼畾鏂囦歡鏄犲儚鐨勪繚鎶ゅ睘鎬с傚叾鍙兘鐨勫彇鍊間負PAGE_READONLY銆丳AGE_READWRITE鍜孭AGE_WRITECOPY銆傝櫧鐒跺湪鍒涘緩鏂囦歡鏄犲皠瀵硅薄鏃訛紝緋葷粺騫朵笉涓哄叾淇濈暀鍦板潃絀洪棿鍖哄煙錛屼篃涓嶅皢鏂囦歡鐨勫瓨鍌ㄥ櫒鏄犲皠鍒拌鍖哄煙銆備絾鏄紝鍦ㄧ郴緇熷皢瀛樺偍鍣ㄦ槧灝勫埌榪涚▼鐨勫湴鍧絀洪棿涓幓鏃訛紝緋葷粺蹇呴』紜垏鐭ラ亾搴旇祴浜堢墿鐞嗗瓨鍌ㄥ櫒欏甸潰鐨勪繚鎶ゅ睘鎬с傚湪璁劇疆淇濇姢灞炴ф椂錛屽繀欏諱笌鐢–reateFile錛堬級鍑芥暟鎵撳紑鏂囦歡鏃舵墍鎸囧畾鐨勮闂爣璇嗙浉鍖歸厤錛屽惁鍒欏皢瀵艱嚧CreateFileMapping錛堬級鐨勬墽琛屽け璐ャ傚洜姝よ繖閲岃緗甈AGE_READWRITE灞炴с傞櫎浜嗕笂榪頒笁涓〉闈繚鎶ゅ睘鎬у錛岃繕鏈?涓尯錛圫ection錛変繚鎶ゅ睘鎬т篃鍙互涓璧風(fēng)粍鍚堜嬌鐢細<br><br> <table cellSpacing=0 width="100%" border=1> <tbody> <tr> <td>鍖轟繚鎶ゅ睘鎬?/td> <td>璇存槑</td> </tr> <tr> <td>SEC_COMMIT</td> <td>涓哄尯涓殑鎵鏈夐〉闈㈠湪鍐呭瓨涓垨紓佺洏欏甸潰鏂囦歡涓垎閰嶇墿鐞嗗瓨鍌ㄥ櫒</td> </tr> <tr> <td>SEC_IMAGE</td> <td>鍛婄煡緋葷粺錛屾槧灝勭殑鏂囦歡鏄竴涓彲縐繪鐨凟XE鏂囦歡鏄犲儚</td> </tr> <tr> <td>SEC_NOCACHE</td> <td>鍛婄煡緋葷粺錛屾湭灝嗘枃浠剁殑浠諱綍鍐呭瓨鏄犲皠鏂囦歡鏀懼叆楂橀熺紦瀛橈紝澶氫緵<a class=bluekey target=_blank><font color=#204890>紜歡</font></a>璁懼椹卞姩<a class=bluekey target=_blank><font color=#204890>紼嬪簭</font></a>寮鍙戜漢鍛樹嬌鐢?/td> </tr> <tr> <td>SEC_RESERVE</td> <td>瀵逛竴涓尯鐨勬墍鏈夐〉闈㈣繘琛屼繚鐣欒屼笉鍒嗛厤鐗╃悊瀛樺偍鍣?/td> </tr> </tbody> </table> <br>銆銆鍚庨潰鐨勪袱涓弬鏁版寚瀹氫簡瑕佸垱寤虹殑鏂囦歡鏄犲皠瀵硅薄鐨勬渶澶у瓧鑺傛暟鐨勯珮32浣嶅煎拰浣?2浣嶅鹼紝瀹為檯涔熷氨璁懼畾浜嗘枃浠剁殑鏈澶у瓧鑺傛暟錛堟渶澶у彲浠ュ鐞?6EB鐨勬枃浠訛級銆傝繖涓や釜鍙傛暟鍙互婊¤凍紜繚鏂囦歡鏄犲皠瀵硅薄鑳藉寰楀埌瓚沖鐨勭墿鐞嗗瓨鍌ㄥ櫒榪欎竴鍩烘湰鏉′歡銆傚湪鍙傛暟璁劇疆鐨勫ぇ灝忓皬浜庢枃浠跺疄闄呭ぇ灝忔椂錛岀郴緇熷皢浠庢枃浠舵槧灝勬寚瀹氱殑瀛楄妭鏁般傝繖閲屽皢鍏惰緗負0錛屽皢浣挎墍鍒涘緩鐨勬枃浠舵槧灝勫璞″皢涓烘枃浠剁殑褰撳墠澶у皬錛屼互涓婁袱縐嶆儏鍐靛潎鏃犳硶鏀瑰彉鏂囦歡鐨勫ぇ灝忋傚鏋滆緗殑鍙傛暟澶т簬鏂囦歡鐨勫疄闄呭ぇ灝忥紝緋葷粺灝嗕細鍦–reateFileMapping錛堬級鍑芥暟榪斿洖鍓嶆墿灞曡鏂囦歡銆傞渶瑕佹寚鍑虹殑鏄紝鏂囦歡鏄犲皠瀵硅薄鐨勫ぇ灝忔槸闈欐佺殑錛屼竴鏃﹀垱寤哄畬姣曞悗灝嗘棤娉曟洿鏀廣傚鏋滆緗殑鏂囦歡鏄犲皠瀵硅薄灝哄鍋忓皬灝嗗鑷存棤娉曞鏂囦歡榪涜鍏ㄩ潰鐨勮闂?br><br>銆銆鍦ㄦ湰鑺傚紑濮嬩篃鏇炬彁鍒拌繃錛屽垱寤烘枃浠舵槧灝勫璞℃槸涓嶉渶瑕佽姳璐逛粈涔堢郴緇熻祫婧愮殑錛屽洜姝ら伒寰?瀹佸鍕跨己"鐨勫師鍒欙紝涓鑸簲灝嗘枃浠舵槧灝勫璞$殑澶у皬璁劇疆涓烘枃浠跺ぇ灝忕殑鐩稿悓鍊箋傚嚱鏁版渶鍚庣殑鍙傛暟灝嗗彲浠ヤ負鏄犲皠瀵硅薄鍛藉悕銆傚鏋滄兂鎵撳紑涓涓凡瀛樺湪鐨勬枃浠舵槧灝勫璞★紝璇ュ璞″繀欏昏鍛藉悕銆傚璇ュ悕瀛楀瓧絎︿覆鐨勮姹備粎闄愪簬鏈鍏跺畠瀵硅薄浣跨敤榪囩殑鍚嶅瓧鍗沖彲銆?br><br>銆銆CreateFileMapping錛堬級鍦ㄦ垚鍔熸墽琛屽悗灝嗚繑鍥炰竴涓寚鍚戞枃浠舵槧灝勫璞$殑鍙ユ焺銆傚鏋滃涓涓凡緇忓瓨鍦ㄧ殑鏂囦歡鏄犲皠瀵硅薄璋冪敤浜咰reateFileMapping錛堬級鍑芥暟錛岃繘紼嬪皢寰楀埌涓涓寚鍚戠幇鏈夋槧灝勫璞$殑鍙ユ焺銆傞氳繃璋冪敤GetLastError錛堬級鍙互寰楀埌榪斿洖鍊糆RROR_ALREADY_EXIST錛岀敱姝ゅ彲浠ュ垽鏂綋鍓嶅緱鍒扮殑鍐呭瓨鏄犲皠瀵硅薄鍙ユ焺鏄柊鍒涘緩鐨勮繕鏄墦寮宸茬粡瀛樺湪鐨勩傚鏋滅郴緇熸棤娉曞垱寤烘枃浠舵槧灝勫璞★紝灝嗗鑷碈reateFileMapping錛堬級鐨勬墽琛屽け璐ワ紝榪斿洖N U L L鍙ユ焺鍊箋?br><br><strong>3錛塎apViewOfFile錛堬級錛?/strong>褰撳垱寤轟簡涓涓唴瀛樻槧灝勬枃浠跺璞″茍寰楀埌鍏舵湁鏁堝彞鏌勫悗錛岃鍙ユ焺鍗沖彲鐢ㄦ潵鍦ㄨ繘紼嬬殑铏氭嫙鍦板潃絀洪棿涓槧灝勬枃浠剁殑涓涓槧鍍忋傚湪鍐呭瓨鏄犲皠鏂囦歡瀵硅薄宸茬粡瀛樺湪鐨勬儏鍐典笅錛屾槧鍍忓彲琚換鎰忔槧灝勬垨鍙栨秷鏄犲皠銆傚湪鏂囦歡鏄犲儚琚槧灝勬椂錛屼粛鐒跺繀欏葷敱緋葷粺鏉ヤ負鏂囦歡鐨勬暟鎹繚鐣欎竴涓湴鍧絀洪棿鍖哄煙錛屽茍灝嗘枃浠剁殑鏁版嵁浣滀負鏄犲皠鍒拌鍖哄煙鐨勭墿鐞嗗瓨鍌ㄥ櫒榪涜鎻愪氦銆傚湪榪涚▼鐨勫湴鍧絀洪棿涓紝涓涓凍澶熷ぇ鐨勮繛緇湴鍧絀洪棿錛堥氬父瓚充互瑕嗙洊鏁翠釜鏂囦歡鏄犲儚錛夊皢琚寚瀹氱粰姝ゆ枃浠舵槧鍍忋傚敖綆″姝わ紝鍐呭瓨鐨勭墿鐞嗛〉闈㈣繕鏄牴鎹湪瀹為檯浣跨敤涓殑闇姹傝岃繘琛屽垎閰嶇殑銆傜湡姝e垎閰嶄竴涓搴斾簬鍐呭瓨鏄犲皠鏂囦歡鏄犲儚欏甸潰鐨勭墿鐞嗗唴瀛橀〉闈㈡槸鍦ㄥ彂鐢熻欏電殑緙洪〉涓柇鏃惰繘琛岀殑錛岃繖灝嗗湪絎竴嬈¤鍐欏唴瀛橀〉闈腑鐨勪換涓鍦板潃鏃惰嚜鍔ㄥ畬鎴愩侻apViewOfFile錛堬級鍗寵礋璐f槧灝勫唴瀛樻槧灝勬枃浠剁殑涓涓槧鍍忥紝<br><br>銆銆鍑芥暟鐨勭涓涓弬鏁頒負CreateFileMapping錛堬級鎵榪斿洖鐨勫唴瀛樻槧灝勬枃浠跺璞″彞鏌勶紝絎簩涓弬鏁版寚瀹氫簡瀵規(guī)枃浠舵槧鍍忕殑璁塊棶綾誨瀷錛屽彲鑳藉彇鍊兼湁FILE_MAP_WRITE銆丗ILE_MAP_READ銆丗ILE_MAP_ALL_ACCESS鍜孎ILE_MAP_COPY絳夊嚑縐嶏紝鍏蜂綋鐨勮緗鏍規(guī)嵁鏂囦歡鏄犲皠瀵硅薄鍏佽鐨勪繚鎶ゆā寮忚屽畾銆傛牴鎹墠闈唬鐮佺殑璁劇疆錛岃繖閲屽簲璇ヤ嬌鐢‵ILE_MAP_ALL_ACCESS鍙傛暟銆傝繖縐嶆満鍒朵負瀵硅薄鐨勫垱寤鴻呮彁渚涗簡瀵規(guī)槧灝勬瀵硅薄鐨勬柟寮忚繘琛屾帶鍒剁殑鑳藉姏銆傛帴涓嬫潵鐨?涓弬鏁板垎鍒寚瀹氫簡鍐呭瓨鏄犲皠鏂囦歡鐨?4浣嶅亸縐誨湴鍧鐨勪綆32浣嶅拰楂?2浣嶅湴鍧錛岃鍦板潃鏄粠鍐呭瓨鏄犲皠鏂囦歡澶翠綅緗埌鏄犲儚寮濮嬩綅緗殑璺濈銆傛渶鍚庣殑鍙傛暟鎸囧畾浜嗚鍥劇殑澶у皬錛屽鏋滆緗負0錛屽墠闈㈢殑鍋忕Щ鍦板潃灝嗚蹇界暐錛岀郴緇熷皢浼氭妸鏁翠釜鏂囦歡鏄犲皠涓轟竴涓槧鍍忋侻apViewOfFile錛堬級濡傛灉鎴愬姛鎵ц錛屽皢榪斿洖涓涓寚鍚戞枃浠舵槧鍍忓湪榪涚▼鐨勫湴鍧絀洪棿涓殑璧峰鍦板潃鐨勬寚閽堛傚鏋滃け璐ワ紝鍒欒繑鍥濶ULL銆傚湪榪涚▼涓紝鍙互涓哄悓涓涓枃浠舵槧灝勫璞″垱寤哄涓枃浠舵槧鍍忥紝榪欎簺鏄犲儚鍙互鍦ㄧ郴緇熶腑鍏卞瓨鍜岄噸鍙狅紝涔熷彲浠ヤ笌瀵瑰簲鐨勬枃浠舵槧灝勫璞″ぇ灝忎笉鐩鎬竴鑷達紝浣嗕笉鑳藉ぇ浜庢枃浠舵槧灝勫璞$殑澶у皬銆?br><br>銆銆<strong>4錛塙nmapViewOfFile錛堬級錛?/strong>褰撲笉鍐嶉渶瑕佷繚鐣欐槧灝勫埌榪涚▼鍦板潃絀洪棿鍖哄煙涓殑鏂囦歡鏄犲儚鏁版嵁鏃訛紝鍙氳繃璋冪敤UnmapViewOfFile錛堬級鍑芥暟灝嗗叾閲婃斁銆傝鍑芥暟緇撴瀯闈炲父綆鍗曪紝鍙渶瑕佹彁渚涙槧鍍忓湪榪涚▼涓殑璧峰鍦板潃錛堝尯鍩熺殑鍩哄湴鍧錛変綔涓哄弬鏁板嵆鍙傝鍑芥暟鐨勮緭鍏ュ弬鏁頒負璋冪敤MapViewOfFile錛堬級鏃舵墍榪斿洖鐨勬寚鍚戞枃浠舵槧鍍忓湪榪涚▼鐨勫湴鍧絀洪棿涓殑璧峰鍦板潃鐨勬寚閽堛傚湪璋冪敤MapViewOfFile錛堬級鍚庯紝蹇呴』紜繚鍦ㄨ繘紼嬮鍑轟箣鍓嶈兘澶熸墽琛孶nmapViewOfFile錛堬級鍑芥暟錛屽惁鍒欏湪榪涚▼緇堟涔嬪悗鍏堝墠淇濈暀鐨勫尯鍩熷皢寰椾笉鍒伴噴鏀撅紝鍗充嬌鍐嶆鍚姩榪涚▼閲嶅璋冪敤MapViewOfFile錛堬級緋葷粺涔熸繪槸鍦ㄨ繘紼嬬殑鍦板潃絀洪棿涓繚鐣欎竴涓柊鐨勫尯鍩燂紝鑰屾鍓嶄繚鐣欑殑鎵鏈夊尯鍩熷皢寰椾笉鍒伴噴鏀俱?br><br>銆銆涓縐嶆瘮杈冪壒孌婄殑鎯呭喌鏄紝瀵瑰悓涓涓唴瀛樻槧灝勬枃浠舵槧灝勪簡涓や釜鐩稿悓鐨勬槧鍍忕殑鎾ゆ秷銆傚墠闈㈡浘緇忔彁鍒拌繃錛屽浜庡悓涓涓唴瀛樻槧灝勬枃浠跺彲浠ユ湁澶氫釜鏄犲儚錛岃繖浜涙槧鍍忎篃鍙互閲嶅彔錛屽洜姝よ繖縐嶆儏鍐電殑瀛樺湪鏄悎娉曠殑銆傚浜庤繖縐嶆儏鍐碉紝铏界劧浠庤〃闈㈢湅涓婂幓鍦ㄥ崟榪涚▼鐨勫湴鍧絀洪棿鍐呮槸涓嶅彲鑳藉瓨鍦ㄤ袱涓熀鍦板潃瀹屽叏鐩稿悓鐨勬槧鍍忕殑錛岃繖灝嗗鑷存棤娉曞榪欏畠浠殑鍖哄垎銆備絾鏄簨瀹炰笂錛岀敱MapViewOfFile錛堬級鎵榪斿洖寰楀埌鐨勫熀鍦板潃鍙槸鏂囦歡鏄犲儚鍦ㄨ繘紼嬪湴鍧絀洪棿涓殑璧峰鍩哄湴鍧錛屽洜姝ゅ湪鏄犲皠鍚屼竴鍐呭瓨鏄犲皠鏂囦歡鐨勪袱涓浉鍚屾槧鍍忔椂灝嗕細浜х敓瀵瑰唴瀛樻槧灝勬枃浠跺悓涓閮ㄥ垎鐨勪袱涓笉鍚屽熀鍦板潃鐨勭浉鍚屾槧鍍忥紝鍙互鐢ㄥ悓鏍風(fēng)殑鏂規(guī)硶璋冪敤UnmapViewOfFile錛堬級灝嗗叾浠庤繘紼嬬殑鍦板潃絀洪棿涓簣浠ユ挙娑堛?br><br>銆銆<strong>5錛塁loseHandle錛堬級錛?/strong> 涓嶹in32鐨勫ぇ澶氭暟瀵硅薄涓鏍鳳紝鍦ㄤ嬌鐢ㄥ畬姣曚箣鍚庢繪槸瑕侀氳繃CloseHandle錛堬級鍑芥暟灝嗗凡鎵撳紑鐨勫唴鏍稿璞″叧闂傚鏋滃繕璁板叧闂璞★紝鍦ㄧ▼搴忕戶緇繍琛屾椂灝嗕細鍑虹幇璧勬簮娉勬紡銆傝櫧鐒跺湪紼嬪簭閫鍑鴻繍琛屾椂錛屾搷浣滅郴緇熶細鑷姩鍏抽棴鍦ㄨ繘紼嬩腑宸茬粡鎵撳紑浣嗘湭鍏抽棴鐨勪換浣曞璞°備絾鏄湪榪涚▼鐨勮繍琛岃繃紼嬩腑錛屽娍蹇呬細縐瘡榪囧鐨勮祫婧愬彞鏌勩傚洜姝ゅ湪涓嶅啀闇瑕佷嬌鐢ㄥ璞$殑鏃跺欓氳繃CloseHandle錛堬級灝嗗叾浜堜互鍏抽棴鏄湁鎰忎箟鐨勩?br><br>銆銆<strong>灝忕粨</strong><br><br>銆銆鏈枃瀵瑰唴瀛樻槧灝勬枃浠跺湪澶ф枃浠跺鐞嗕腑鐨勫簲鐢ㄤ綔浜嗚緝涓鴻緇嗙殑闃愯堪銆傜粡瀹為檯嫻嬭瘯錛屽唴瀛樻槧灝勬枃浠跺湪澶勭悊澶ф暟鎹噺鏂囦歡鏃惰〃鐜板嚭浜嗚壇濂界殑鎬ц兘錛屾瘮閫氬父浣跨敤CFile綾誨拰ReadFile()鍜學(xué)riteFile()絳夊嚱鏁扮殑鏂囦歡澶勭悊鏂瑰紡鍏鋒湁鏄庢樉鐨勪紭鍔褲傛湰鏂囨墍榪扮▼搴忎唬鐮佸湪Windows 2000 Professional涓嬬敱Microsoft Visual C++ 6.0緙栬瘧閫氳繃銆?br><br> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/74017.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-02-17 11:55 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/02/17/74017.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏂囦歡鎿嶄綔錛欳reateFile鍜學(xué)riteFile鐨勫涔?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/02/09/73334.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Mon, 09 Feb 2009 14:14:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/02/09/73334.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/73334.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/02/09/73334.html#Feedback</comments><slash:comments>9</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/73334.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/73334.html</trackback:ping><description><![CDATA[  <p align=left><span>浠婂ぉ鐨勪換鍔℃槸瑕佷繚瀛樹竴涓枃浠躲傚鉤甯哥湅鍒漢鎬庝箞鍐欙紝鑷繁榪樺彧鏄湅錛屾病鏈夊姩鎵嬪幓鍐欒繃錛屽鍚勪釜<span>API</span>鐩稿簲鐨勫弬鏁頒笉鏄緢浜嗚В銆備粖澶╁湪榪愮敤鐨勬椂鍊欙紝榪樼湡鏄亣瑙佷簡涓浜涢棶棰樸?span><br><br></span>鎴戜滑鍏堟潵璇磋闂錛?span><br></span>絎竴涓棶棰橈細浣跨敤<span>WriteFile</span>鐨勬椂鍊欙紝鎴戠洿鎺ュ皢瀹藉瓧絎︿覆鍐欒繘浜嗘枃浠訛紝鏂囦歡鏄劇ず濡傚ぇ瀹舵墍鎯籌紝鎺烘潅浜嗗緢澶氫貢鐮併備絾鏄緢鏈夎鍒欍傛墍浠ユ垜寰堝揩灝辨槑鐧戒簡榪欓渶瑕佸皢瀹藉瓧絎︿覆杞崲鎴?span>ASCII</span>鐮併?span><br></span>絎簩涓棶棰橈細灝辨槸鎴戝皢鏂囦歡鎵撳紑鍚庯紝鍙堣繘琛屼簡鍐欐枃浠剁殑鎿嶄綔錛屾鏃跺け璐ャ傛墍浠ュ榪欑鎯呭喌錛岃繕娌℃湁鎯沖嚭鍔炴硶錛屾槸鐢變簬<span>CreateFile</span>鐨勫弬鏁扮殑鏌愪簺闄愬埗涔堬紵<span><br><br></span>鐢變簬榪欎袱涓棶棰橈紝鎵浠ユ垜涔熷ソ濂界湅浜嗕竴涓?span>SDK</span>鏂囨。銆?span><br></span>鎴戜滑鍏堟潵鐪嬩竴涓?span>CreateFile</span>鍜?span>WriteFile</span>鐨勫師鍨嬪拰鍙傛暟浠嬬粛錛?span><br><br><strong>HANDLE</strong> <strong><span>CreateFile</span>(</strong><br>  <strong>LPCTSTR</strong> <em><span><u><span>lpFileName</span></u></span></em><strong>,  // </strong></span><strong>鏂囦歡鍚?/strong><span><br>  <strong>DWORD</strong> <em><span><u><span>dwDesiredAccess</span></u></span></em><strong>,  // </strong></span><strong>璁塊棶鏂瑰紡</strong><span><br>  <strong>DWORD</strong> <em><span><u><span>dwShareMode</span></u></span></em><strong>,  // </strong></span><strong>鍏變韓妯″紡</strong><span><br>  <strong>LPSECURITY_ATTRIBUTES</strong> <em><span><u><span>lpSecurityAttributes</span></u></span></em><strong>,  // </strong></span><strong>璁句負<span>NULL</span></strong><span><br>  <strong>DWORD</strong> <em><span><u><span>dwCreationDisposition</span></u></span></em><strong>,  /// </strong></span><strong>鍒涘緩鏂瑰紡</strong><span><br>  <strong>DWORD</strong> <em><span><u><span>dwFlagsAndAttributes</span></u></span></em><strong>,  // </strong></span><strong>灞炴?/strong><span><br>  <strong>HANDLE</strong> <em><span><u><span>hTemplateFile</span></u></span></em><br><strong>);</strong> </span></span></p> <p align=left><strong><span>BOOL</span></strong><span> <strong><span>WriteFile</span>( </strong></span></p> <p align=left><span> <strong>HANDLE</strong> <em><span><u><span>hFile</span></u></span></em><strong>, // </strong></span><strong><span>鏂囦歡鍙ユ焺</span></strong></p> <p align=left><span> <strong>LPCVOID</strong> <em><span><u><span>lpBuffer</span></u></span></em><strong>, // </strong></span><strong><span>鍖呭惈鍐欏悜鏂囦歡鐨勬暟鎹?/span></strong></p> <p align=left><span> <strong>DWORD</strong> <em><span><u><span>nNumberOfBytesToWrite</span></u></span></em><strong>, // </strong></span><strong><span>鏁版嵁鍖呭惈鐨勫瓧絎︿覆鐨勪釜鏁?/span></strong></p> <p align=left><span> <strong>LPDWORD</strong> <em><span><u><span>lpNumberOfBytesWritten</span></u></span></em><strong>, </strong></span></p> <p align=left><span> <strong>LPOVERLAPPED</strong> <em><span><u><span>lpOverlapped</span></u></span></em></span></p> <p align=left><strong><span>);</span></strong><span> </span></p> <p align=left><span>絎竴嬈℃垜鍐欑殑紼嬪簭寰堢畝鍗?/span></p> <p align=left><span>BOOL WriteOwnFile(TCHAR* pFileName, TCHAR* pBuffer, DWORD dwLen)</span></p> <p align=left><span>{</span></p> <p align=left><span><span>        </span>HANDLE hFile = CreateFile(pFileName,</span></p> <p align=left><span><span>                       </span></span><span>GENERIC_WRITE,</span></p> <p align=left><span><span>                                              </span>FILE_SHARE_WRITE,</span></p> <p align=left><span><span>                                              </span>NULL,</span></p> <p align=left><span><span>                                              </span>CREATE_ALWAYS,</span></p> <p align=left><span><span>                                              </span>FILE_ATTRIBUTE_NORMAL,</span></p> <p align=left><span><span>                                              </span>NULL</span></p> <p align=left><span><span>                                              </span></span><span>錛夛紱</span></p> <p align=left> </p> <p align=left><span><span>                 </span>if (INVALID_HANDLE_VALUE != hFile)</span></p> <p align=left><span><span>               </span>{</span></p> <p align=left><span><span>                                              </span>DWORD dwSize = 0;</span></p> <p align=left><span><span>                                              </span>WriteFile(hFile, pBuffer, dwLen, &dwSize, NULL );</span></p> <p align=left><span><span>                                              </span>CloseHandle(hFile);</span></p> <p align=left><span><span>                                              </span>return TRUE;</span></p> <p align=left><span><span>               </span>}</span></p> <p align=left><span><span>               </span>return FALSE;</span></p> <p align=left><span>}</span></p> <p align=left> </p> <p align=left><span>榪欐牱鏄畬鎴愪簡錛屼絾鏄啓鍑烘潵鐨勬枃浠舵槸涔辯爜銆傛墍浠ユ病鏈夎繘琛屽瓧絎︾殑杞崲錛屾垜浠渶瑕佸皢<span>pBuffer</span>榪涜杞崲銆傝繖灝辮鐢ㄥ埌浜?span>WideCharToMultiByte.</span>濡備綍鐢ㄥ憿錛?/span></p> <p align=left><span>棣栧厛鎴戠殑鏂規(guī)硶姣旇緝絎紝鎴戞槸榪欎箞鐢ㄧ殑錛?/span></p> <p align=left><span>char* pchBuffer = new char[dwLen+1];</span></p> <p align=left><span>WideCharToMultiByte(</span><span>CP_ACP, NULL, pBuffer, -1, pchBuffer, dwLen+1, NULL, FALSE </span><span>);</span></p> <p align=left><span>WriteFile(hFile, pBuffer, <span>dwLen+1</span>, &dwSize, NULL );</span></p> <p align=left><span> Delete[] pchBuffer;</span></p> <p align=left> </p> <p align=left><span>姝ゆ椂娉ㄦ剰錛屾垜鍦?span>WriteFile</span>涓敤浜?span>dwLen+1</span>銆傜粨鏋滃氨鏄湪鏂囦歡鐨勬湯灝懼嚭鐜頒簡涔辯爜錛屾濂藉涓涓貢鐮佸嚭鏉ャ傛墍浠?span>WriteFile</span>涓?span><span>nNumberOfBytesToWrite</span></span>鏄啓鐨勫瓧絎︿覆鐨勬暟鐩紝鏄笉鍖呮嫭<span>’\<st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="0" UnitName="’">0’</st1:chmetcnv></span>鐨勩?/span></p> <p align=left> </p> <p align=left><span>榪欎釜鏂規(guī)硶絎紝鏄洜涓烘垜浠殑鍑芥暟鍙互緙╁噺涓轟袱涓弬鏁般傛槸鍥犱負濡備笅榪欎箞鍐欐椂錛?span>dwLen</span>鏄墍瑕佽漿鎹㈢殑瀛楃涓茬殑涓暟錛屾鏃惰漿鎹㈢殑瀛楃涓叉槸鍖呮嫭<span>’\<st1:chmetcnv w:st="on" TCSC="0" NumberType="1" Negative="False" HasSpace="False" SourceValue="0" UnitName="’">0’</st1:chmetcnv></span>鐨勩?/span></p> <p align=left><span>DWORD dwLen = WideCharToMultiByte(</span><span>CP_ACP, NULL, pBuffer, -1, NULL, NULL, NULL, FALSE </span><span>);</span></p> <p align=left> </p> <p align=left><span>鎵浠ユ垜浠啀鏉ョ湅涓涓嬫敼鍐欎互鍚庣殑浠g爜</span></p> <p align=left><span>BOOL WriteOwnFile(TCHAR* pFileName, TCHAR* pBuffer)</span></p> <p align=left><span>{</span></p> <p align=left><span><span>        </span>HANDLE hFile = CreateFile(pFileName,</span></p> <p align=left><span><span>                       </span></span><span>GENERIC_WRITE,</span></p> <p align=left><span><span>                                              </span>FILE_SHARE_WRITE,</span></p> <p align=left><span><span>                                              </span>NULL,</span></p> <p align=left><span><span>                                              </span>CREATE_ALWAYS,</span></p> <p align=left><span><span>                                              </span>FILE_ATTRIBUTE_NORMAL,</span></p> <p align=left><span><span>                                              </span>NULL</span></p> <p align=left><span><span>                                              </span></span><span>錛夛紱</span></p> <p align=left> </p> <p align=left><span><span>                               </span>if (INVALID_HANDLE_VALUE != hFile)</span></p> <p align=left><span><span>               </span>{</span></p> <p align=left><span><span>                                              </span>DWORD dwSize = 0;</span></p> <p align=left><span><span>                                              </span>DWORD dwLen = WideCharToMultiByte(CP_ACP, NULL, pBuffer, -1, NULL, NULL, NULL, FALSE );</span></p> <p align=left><span><span>                                              </span>char* pchBuffer = new char[dwLen];</span></p> <p align=left><span><span>                                              </span>WideCharToMultiByte(CP_ACP, NULL, pBuffer, -1, pchBuffer, dwLen, NULL, FALSE );</span></p> <p align=left><span><span>                                              </span>WriteFile(hFile, pBuffer, dwLen+1, &dwSize, NULL );</span></p> <p align=left><span><span>                                              </span> delete[] pchBuffer;</span></p> <p align=left><span><span>                                              </span>CloseHandle(hFile);</span></p> <p align=left><span><span>                                              </span>return TRUE;</span></p> <p align=left><span><span>               </span>}</span></p> <p align=left><span><span>               </span>return FALSE;</span></p> <p align=left><span>}</span></p> <p align=left> </p> <p align=left> </p> <p align=left><span>榪欐牱鎰熻浠g爜濂界湅澶氫簡銆?/span></p> <p align=left> </p> <p align=left><span>瀵逛簬絎簩涓棶棰橈紝鏂囦歡鎵撳紑鐨勬椂鍊欐枃浠跺垱寤哄け璐ワ紝榪樻病鏈夋兂濂藉姙娉曡В鍐熾傛垜鍦ㄦ兂鏄笉鏄垜鐨勬煇浜涜鐭ュ瓨鍦ㄩ棶棰橈紝鏂囦歡鎵撳紑鐨勬椂鍊欙紝鏄惁鍙互鐢?/span><span>CreateFile</span><span>鏉ユ墦寮鍛紵<br></span></p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/73334.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-02-09 22:14 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/02/09/73334.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>mobile涓婄洃鎺ф枃浠剁殑鎿嶄綔http://m.shnenglu.com/SpringSnow/archive/2009/02/08/73221.htmlSandySandySun, 08 Feb 2009 08:20:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/02/08/73221.htmlhttp://m.shnenglu.com/SpringSnow/comments/73221.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/02/08/73221.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/73221.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/73221.html浠婂ぉ瀹屾垚浜嗕竴涓換鍔?/span>,灝辨槸鍦?/span>mobile涓婂浣曠洃鎺ф枃浠剁殑鎿嶄綔銆傝繖涓?/span>SDK涓湁鐩稿簲鐨勪緥瀛愶紝涓?/span>FileChangeNotif銆?/span>

 
濡備綍瀹炵幇鏂囦歡鐩戞帶錛?/span>
         
棣栧厛瑕佸湪紿楀彛娉ㄥ唽錛岃繖涓鐢ㄥ埌SHChangeNotifyRegister錛岃繖涓嚱鏁扮殑涓昏鍔熻兘灝辨槸鍒椾婦涓涓獥鍙f潵鎺ユ敹change notifications.
         
鍦ㄨ繖涓敞鍐岀殑紿楀彛涓紝鍝嶅簲WM_FILECHANGEINFO榪欎釜娑堟伅錛屾潵榪涜鎴戜滑鍝嶅簲鐨勬搷浣溿?/span>
         
濡備綍鎴戜滑涓嶆兂鐩戞帶浜嗭紝鍒欏彲浠ヤ嬌鐢?/span>SHChangeNotifyDeregister錛屾潵縐婚櫎鐩稿簲鐨勬敞鍐岀獥鍙c?/span>

榪欐牱鎴戜滑灝卞彲浠ュ疄鐜板涓涓枃浠跺す鍐呮枃浠剁殑鐢熸垚錛屽垹闄わ紝鏀瑰悕絳夌瓑鎿嶄綔鐨勭洃鎺с?/span>

涓嬮潰鎴戜滑鍐嶅叿浣撴潵璋堣皥姣忎竴姝ュ浣曟搷浣溿?/span>
1
銆?/span>SHChangeNotifyRegister鐨勮繍鐢?/span>
   SHChangeNotifyRegister
鐨勫師鍨嬩負
  BOOL WINAPI SHChangeNotifyRegister(

HWND hwnd,

SHCHANGENOTIFYENTRY * pshcne

);

  鍏朵腑,hwnd,涓烘帴鏀?/span>change notification鐨勭獥鍙?/span>;

pshcne鏄竴涓寚鍚?/span>SHCHANGENOTIFYENTRY緇撴瀯鐨勬寚閽?/span>,瀹冪敤鏉ユ寚鏄庣獥鍙f帴鏀剁殑change notification鐨勭被鍨?/span>.濡傛灉璁句負NULL,紿楀彛灝嗘帴鏀?/span>all file system, network 鍜?/span> media綾誨瀷鐨?/span>notifications.

SHCHANGENOTIFYENTRY鏄粈涔堟牱鐨勪竴涓粨鏋?/span>,鎴戜滑鐪嬩竴涓嬪畠鐨勫畾涔?/span>

typedef  struct  tagSHCHANGENOTIFYENTRY {
   DWORD dwEventMask;
   LPTSTR pszWatchDir;
 BOOL fRecursive;

} SHCHANGENOTIFYENTRY;

dwEventMask 鎸囧畾鍙戠敓浠涔堟椂闂存潵鍙戦?/span>notification 娑堟伅

pszWatchDir 鎸囧畾鐩戞帶璺緞錛岃鍊間負NULL鐨勬儏鍐典笅錛屾槸鐩戞帶鎵鏈夌殑鏂囦歡銆?/span>

fRecursive鎸囧畾鏄惁鍙洃鎺ф寚瀹氳礬寰勮繕鏄洃鎺ф寚瀹氳礬寰勫強鍏跺瓙鏂囦歡澶廣?/span>

 

鐭ラ亾浜嗚繖浜涳紝鎴戜滑涓嶅Θ鍐欎竴涓繖鏍風(fēng)殑鍑芥暟錛屾潵鍚姩鏂囦歡鐩戞帶銆?/span>

浠g爜濡備笅錛?/span>

BOOL StartFileMonitor(HWND hWnd, LPTSTR lpFilePath)

{

     SHCHANGENOTIFYENTRY schneNotifyEntry;

     schneNotifyEntry.dwEventMask = SHCNE_ALLEVENTS;

     schneNotifyEntry.pszWatchDir = lpFilePath;

     schneNotifyEntry.fRecursive = TRUE;

 

     return SHChangeNotifyRegister(hWnd, &schneNotifyEntry);

}

2銆佸浣曞鐞?/span>WM_FILECHANGEINFO娑堟伅

WM_FILECHANGEINFO 涓殑鍙傛暟lParam錛屾寚鍚?/span>FILECHANGENOTIFY錛屽惈鏈夌浉鍏崇殑鏁版嵁銆傛墍浠ユ垜浠湪鏀跺埌璇ユ秷鎭悗錛屽厛浣滅殑涓閮ㄦ搷浣滃氨鏄?/span>

FILECHANGENOTIFY *lpfcn = (FILECHANGENOTIFY*)lParam;

FILECHANGENOTIFY鐨勭粨鏋勪負錛?/span>

typedef struct tagFILECHANGENOTIFY {

 DWORD dwRefCount;

 FILECHANGEINFO fci;

} FILECHANGENOTIFY;

鎴戜滑涓昏鐢ㄥ埌浜嗗叾涓殑fci鍙傛暟銆?/span>

FILECHANGEINFO鐨勭粨鏋勪負錛?/span>

struct _FILECHANGEINFO {

 DWORD cbSize;

 LONG wEventId;

 ULONG uFlags;

 DWORD dwItem1;

 DWORD dwItem2;

 DWORD dwAttributes;

 FILETIME ftModified;

 ULONG nFileSize;

} FILECHANGEINFO, *LPFILECHANGEINFO;

dwEventId 涓?/span>SHCHANGENOTIFYENTRY緇撴瀯涓殑dwEventMask瀵瑰簲銆?/span>

dwItem1,dwItem2鏄簨浠朵緷璧栫殑鍊鹼紝閲岄潰鍖呮嫭浜嗘垜浠渶瑕佺殑鏂囦歡鐨勫畬鏁磋礬寰勩傚鏋滄槸榪涜鍒涘緩鏂囦歡鐨勬搷浣滐紝鍒?/span>dwItem1鏄垱寤哄悗鏂囦歡鐨勫畬鏁磋礬寰勶紝濡傛灉鏄鏂囦歡榪涜閲嶆柊鍛藉悕鎿嶄綔鐨勮瘽錛屽垯dwItem2鏄慨鏀瑰悗鏂囦歡鐨勫畬鏁磋礬寰勩傛澶勫鍏朵粬鍙傛暟涓嶅仛浠嬬粛錛屽ぇ瀹墮渶瑕佺殑璇濓紝鍙互鏌ョ湅涓涓嬨?/span>

 

鎴戜滑鍋氬畬鐩稿簲鐨勬搷浣滃悗錛岃鐭ラ亾閲婃斁錛屾鏃惰鐢ㄥ埌SHChangeNotifyFree銆傝繖涓敤璧鋒潵灝辯畝鍗曞緢澶氾紝濡?/span>SHChangeNotifyFree錛?/span>lpfcn錛夈?/span>

 

涓嬮潰緇欏ぇ瀹朵竴灝忔紺轟緥浠g爜錛屽涓?/span>

case WM_FILECHANGEINFO:

     {  

FILECHANGENOTIFY    *lpfcn;

          FILECHANGEINFO        *lpfci;   

lpfcn = (FILECHANGENOTIFY *)lParam;

         if (NULL == lpfcn)

         {

             break;

         }

         // see if the pointer to the file change info structure

         lpfci = &(lpfcn->fci);

         if (NULL == lpfci)

         {

             break;

         }

           else

           {

               switch (lpfci->wEventId) 

                     {

                     case SHCNE_RENAME:

                            {

                                   //……

                            }

                            break;

                     }    

           }

           SHChangeNotifyFree(lpfcn);

}

break;

 

3銆佸浣曞仠姝㈡枃浠剁洃鎺?/span>

   鍋滄鏂囦歡鐩戞帶姣旇緝綆鍗曪紝鍙浣胯紿楀彛涓嶆帴鏀?/span>WM_FILECHANGEINFO娑堟伅鍗沖彲銆備嬌鐢?/span>SHChangeNotifyDeregister(hWnd)鍗沖彲銆?/span>

 

浠ヤ笂鏄垜浠婂ぉ瀛︿範鐨勪竴浜涙葷粨錛屾澶栭渶瑕佹敞鎰忕殑涓涓皬鍦版柟錛屽湪mobile涓婏紝鎶婁竴涓枃浠朵粠涓涓枃浠跺す鎷峰埌鍙︿竴涓枃浠跺す錛屾鏃跺搷搴旂殑浜嬩歡鏄?/span>SHCNE_CREATE錛屼簩浠庣數(shù)鑴戜笂鎷瘋礉涓涓枃浠跺埌mobile涓婏紝鍝嶅簲鐨勬秷鎭負SHCNE_RENAME銆傛垜娉ㄦ剰鍒頒粠鐢?shù)鑴戜笂鎷疯礉鐨勮瘽锛?/span>mobile浼氬厛鐢熸垚涓涓?/span>Temp鏂囦歡澶瑰唴鐢熸垚涓涓復(fù)鏃舵枃浠訛紝鐒跺悗鍐嶅湪鎴戜滑鎸囧畾鐨勬枃浠跺す鍐呯敓鎴愪竴涓枃浠躲傝繖涓満鍒舵垜榪樹笉鏄緢娓呮涓轟粈涔堛?/span>



Sandy 2009-02-08 16:20 鍙戣〃璇勮
]]>
mobile鏁版嵁搴撻亣鍒扮殑闂 http://m.shnenglu.com/SpringSnow/archive/2009/02/04/72972.htmlSandySandyWed, 04 Feb 2009 05:20:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2009/02/04/72972.htmlhttp://m.shnenglu.com/SpringSnow/comments/72972.htmlhttp://m.shnenglu.com/SpringSnow/archive/2009/02/04/72972.html#Feedback0http://m.shnenglu.com/SpringSnow/comments/commentRss/72972.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/72972.html浠婂ぉ鍦ㄥ姞鏁版嵁搴撶殑鐩稿叧鎿嶄綔鏃?閬囧埌浜嗕竴浜涢棶棰?鎻愮ず

error C3861: 'CeMountDBVolEx': identifier not found
error C3861: 'CeMountDBVolEx': identifier not found
error C3861: 'CeCreateDatabaseWithProps': identifier not found
error C3861: 'CeCreateSession': identifier not found
error C3861: 'CeOpenDatabaseInSession': identifier not found

鎴戝湪.cpp鏂囦歡鐨勫紑澶村姞鍏ヤ簡

#define EDB
#include <windows.h>
#include <windbase.h>

浣嗘槸閿欒榪樹緷鐒跺瓨鍦?/p>

浠庣綉涓婃悳绱簡涓浜涙柟娉?/p>

鍦ㄥ崥鏂囥妋obile鏁版嵁搴撻亣鍒扮殑闂銆?/font>

http://blog.sina.com.cn/s/blog_4c5ad0740100cvxg.html

瀹冮噷闈㈠緩璁嬌鐢?/p>

extern "C"
{
  #include <windbase_edb.h>
}

浣嗘槸浣跨敤鍚庯紝闂鍙樻垚浜唋nk鐨勯敊璇?/p>

error LNK2019: unresolved external symbol

鏈変漢鍦ㄨ鍧涢噷寤鴻

#include Windbase_edb.h

涔熸槸鍚屾牱鐨勯棶棰?/p>

鏈鍚庯紝鎴戦棶浜嗕竴涓嬫垜鐨勫悓浜?/p>

浠栧緩璁垜鍦?/p>

stdafx.h 澶存枃浠朵腑娣誨姞

#define EDB
#include <windows.h>
#include <windbase.h>

榪欐牱鐨勭‘瑙e喅浜嗛棶棰樸?/p>

Sandy 2009-02-04 13:20 鍙戣〃璇勮
]]>
杞?榪涚▼闂撮氫俊鐨?1縐嶆柟娉?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/02/03/72928.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 03 Feb 2009 10:53:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/02/03/72928.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/72928.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/02/03/72928.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/72928.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/72928.html</trackback:ping><description><![CDATA[<p>鍏堢矘榪囨潵,澶囦互鍚庣粏璇?br>閾炬帴鍦板潃:http://www.bsdlover.cn/index.php?action/viewnews/itemid/1611/page/1/php/1<br><br></p> <p><a onclick="javascript:tagshow(event, '%E8%BF%9B%E7%A8%8B');" href="javascript:;" target=_self><u><strong><font color=#656d77>榪涚▼</font></strong></u></a>闂?a onclick="javascript:tagshow(event, '%E9%80%9A%E4%BF%A1');" href="javascript:;" target=_self><u><strong><font color=#656d77>閫氫俊</font></strong></u></a>鏈変互涓嬫柟娉?br>Using named objects<br>Waiting for multiple objects<br>Waiting in a message loop<br>Using mutex objects<br>Using semaphore objects<br>Using event objects<br>Using critical section objects<br>Using timer queues<br>Using waitable timer objects<br><strong> <span id=ArticleTitle1_ArticleTitle1_lblTitle>榪涚▼闂寸殑閫氳<a onclick="javascript:tagshow(event, '%E5%AE%9E%E7%8E%B0');" href="javascript:;" target=_self><u><strong><font color=#656d77>瀹炵幇</font></strong></u></a>錛圛PC錛夌殑11縐嶆柟娉?/span></strong>    <p>榪涚▼閫氬父琚畾涔変負涓涓鍦ㄨ繍琛岀殑紼嬪簭鐨勫疄渚嬶紝瀹冪敱涓や釜閮ㄥ垎緇勬垚錛?br>涓涓槸鎿嶄綔緋葷粺鐢ㄦ潵綆$悊榪涚▼鐨?a onclick="javascript:tagshow(event, '%E5%86%85%E6%A0%B8');" href="javascript:;" target=_self><u><strong><font color=#656d77>鍐呮牳</font></strong></u></a>瀵硅薄銆傚唴鏍稿璞′篃鏄郴緇熺敤鏉ュ瓨鏀懼叧浜庤繘紼嬬殑緇熻淇℃伅鐨勫湴鏂?br> 鍙︿竴涓槸鍦板潃絀洪棿錛屽畠鍖呭惈鎵鏈夌殑鍙墽琛屾ā鍧楁垨DLL妯″潡鐨勪唬鐮佸拰鏁版嵁銆傚畠榪樺寘鍚姩鎬佸垎閰嶇殑絀洪棿銆傚綰跨▼鍫嗘爤鍜屽爢鍒嗛厤絀洪棿銆傛瘡涓繘紼嬭璧嬩簣瀹冭嚜宸辯殑铏氭嫙鍦板潃絀洪棿錛屽綋榪涚▼涓殑涓涓嚎紼嬫鍦ㄨ繍琛屾椂錛岃綰跨▼鍙互璁塊棶鍙睘浜庡畠鐨勮繘紼嬬殑<a onclick="javascript:tagshow(event, '%E5%86%85%E5%AD%98');" href="javascript:;" target=_self><u><strong><font color=#656d77>鍐呭瓨</font></strong></u></a>銆傚睘浜庡叾瀹冭繘紼嬬殑鍐呭瓨鍒欐槸闅愯棌鐨勶紝騫朵笉鑳借姝e湪榪愯鐨勭嚎紼嬭闂?br>   涓轟簡鑳藉湪涓や釜榪涚▼涔嬮棿榪涜閫氳錛岀敱浠ヤ笅鍑犵鏂規(guī)硶鍙緵鍙傝冿細</p> <p>鍦?6浣嶆椂浠e父浣跨敤鐨勬柟寮忥紝CWnd涓彁渚涙敮鎸?br>1銆傜獥鍙f秷鎭?鏍囧噯鐨刉indows娑堟伅浠ュ強涓撶敤鐨刉M_COPYDATA娑堟伅 SENDMESSAGE()鎺ユ敹绔繀欏繪湁涓涓獥鍙?/p> <p>2銆備嬌鐢ㄥ叡浜唴瀛樻柟寮忥紙Shared Memory)<br>a.璁懼畾涓鍧楀叡浜唴瀛樺尯鍩?nbsp;      <br>     HANDLE CreateFileMapping(HANDLE,LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD,  LPCSTR)<br>     浜х敓涓涓猣ile-mapping鏍稿績瀵硅薄<br>     LPVOID MapViewOfFile(<br>         HANDLE hFileMappingObject,<br>        DWORD  dwDesiredAcess,<br>         DWORD  dwFileOffsetHigh,<br>         DWORD  dwFileOffsetLow,<br>          DWORD  dwNumberOfBytesToMap<br>     );<br>寰楀埌鍏變韓鍐呭瓨鐨?a onclick="javascript:tagshow(event, '%E6%8C%87%E9%92%88');" href="javascript:;" target=_self><u><strong><font color=#656d77>鎸囬拡</font></strong></u></a><br>   b.鎵懼嚭鍏變韓鍐呭瓨<br>    鍐沖畾榪欏潡鍐呭瓨瑕佷互鐐瑰鐐癸紙peer to peer)鐨勫艦寮忓憟鐜?br>姣忎釜榪涚▼閮藉繀欏繪湁鐩稿悓鐨勮兘鍔涳紝浜х敓鍏變韓鍐呭瓨騫跺皢瀹冨垵濮嬪寲銆傛瘡涓繘紼?br>閮藉簲璇ヨ皟鐢–reateFileMapping(),鐒跺悗璋冪敤GetLastError().濡傛灉浼犲洖鐨勯敊璇唬鐮佹槸ERROR_ALREADY_EXISTS,閭d箞榪涚▼灝卞彲浠ュ亣璁捐繖涓鍏變韓鍐呭瓨鍖?        鍩熷凡緇忚鍒殑榪涚▼鎵撳紑騫跺垵濮嬪寲浜嗭紝鍚﹀垯璇ヨ繘紼嬪氨鍙互鍚堢悊鐨勮涓鴻嚜宸?鎺掑湪絎竴浣嶏紝騫舵帴涓嬫潵灝嗗叡浜唴瀛樺垵濮嬪寲銆傝繕鏄浣跨敤client/server鏋舵瀯涓彧鏈塻erver榪涚▼鎵嶅簲璇ヤ駭鐢熷茍鍒濆鍖栧叡浜唴瀛樸傛墍鏈夌殑榪涚▼閮藉簲璇ヤ嬌鐢?br>HANDLE OpenFileMapping(DWORD dwDesiredAccess,<br>                                   BOOL bInheritHandle,<br>                                   LPCTSTR lpName);<br>        鍐嶈皟鐢∕apViewOfFile(),鍙栧緱鍏變韓鍐呭瓨鐨勬寚閽?br>   c.鍚屾澶勭悊(Mutex)<br>   d.娓呯悊(Cleaning up) BOOL UnmapViewOfFile(LPCVOID lpBaseAddress);<br>    CloseHandle()</p> <p>3銆傚姩鎬佹暟鎹氦鎹紙DDE錛夐氳繃緇存姢鍏ㄥ眬鍒嗛厤鍐呭瓨浣跨殑搴旂敤紼嬪簭闂翠紶閫掓垚涓哄彲鑳?br>   鍏舵柟寮忔槸鍐嶄竴鍧楀叏灞鍐呭瓨涓墜宸ユ斁緗ぇ閲忕殑鏁版嵁錛岀劧鍚庝嬌鐢ㄧ獥鍙f秷鎭紶閫掑唴瀛?nbsp;   鎸囬拡.榪欐槸16浣峎IN鏃朵唬浣跨敤鐨勬柟寮忥紝鍥犱負鍦╓IN32涓嬪凡緇忔病鏈夊叏灞鍜屽眬閮ㄥ唴瀛?nbsp;   浜嗭紝鐜板湪鐨勫唴瀛樺彧鏈変竴縐嶅氨鏄櫄瀛樸?nbsp; </p> <p>4銆傛秷鎭閬?Message Pipe)<br>   鐢ㄤ簬璁劇疆搴旂敤紼嬪簭闂寸殑涓鏉℃案涔呴氳閫氶亾錛岄氳繃璇ラ氶亾鍙互璞¤嚜宸辯殑搴旂敤紼嬪簭<br>   璁塊棶涓涓鉤闈?a onclick="javascript:tagshow(event, '%E6%96%87%E4%BB%B6');" href="javascript:;" target=_self><u><strong><font color=#656d77>鏂囦歡</font></strong></u></a>涓鏍瘋鍐欐暟鎹?br>   鍚嶇閬?Anonymous Pipes)<br>    鍗曞悜嫻佸姩錛屽茍涓斿彧鑳藉鍦ㄥ悓涓鐢?shù)鑴戜笂鐨勫悇涓獦q涚▼涔嬮棿嫻佸姩銆?br>   鍛藉悕綆¢亾(Named Pipes)<br>   鍙屽悜錛岃法緗戠粶錛屼換浣曡繘紼嬮兘鍙互杞繪槗鐨勬姄浣忥紝鏀捐繘綆¢亾鐨勬暟鎹湁鍥哄畾鐨勬牸寮忥紝鑰屼嬌鐢≧eadFile()鍙兘璇誨彇璇ュぇ灝忕殑鍊嶆暟銆傚彲浠ヨ浣跨敤浜嶪/O Completion Ports</p> <p>5閭歡妲?Mailslots)<br>    騫挎挱寮忛氫俊,鍦?2緋葷粺涓彁渚涚殑鏂版柟娉曪紝鍙互鍦ㄤ笉鍚屼富鏈洪棿浜ゆ崲鏁版嵁錛屽湪        WIN9X涓嬪彧鏀寔閭歡妲藉鎴?/p> <p>6Windows濂楁帴瀛?Windows Socket)<br>   瀹冨叿澶囨秷鎭閬撴墍鏈夌殑鍔熻兘錛屼絾閬靛畧涓濂楅氫俊鏍囧噯浣跨殑涓嶅悓鎿嶄綔緋葷粺涔嬩笂鐨勫簲    鐢ㄧ▼搴忎箣闂村彲浠ヤ簰鐩擱氫俊銆?/p> <p>7Internet閫氫俊 瀹冭搴旂敤紼嬪簭浠嶪nternet鍦板潃涓婅澆鎴?a onclick="javascript:tagshow(event, '%E4%B8%8B%E8%BD%BD');" href="javascript:;" target=_self><u><strong><font color=#656d77>涓嬭澆</font></strong></u></a>鏂囦歡</p> <p>8銆俁PC錛氳繙紼嬭繃紼嬭皟鐢紝寰堝皯浣跨敤錛屽洜鍏朵笌UNIX鐨凴PC涓嶅吋瀹廣?/p> <p>9銆備覆琛?騫惰閫氫俊(Serial/Parallel Communication)<br>   瀹冨厑璁稿簲鐢ㄧ▼搴忛氳繃涓茶鎴栧茍琛岀鍙d笌鍏朵粬鐨勫簲鐢ㄧ▼搴忛氫俊</p> <p>10銆侰OM/DCOM<br>     閫氳繃COM緋葷粺鐨勪唬鐞嗗瓨鏍規(guī)柟寮忚繘琛岃繘紼嬮棿鏁版嵁浜ゆ崲錛屼絾鍙兘澶熻〃鐜板湪瀵規(guī)帴鍙?nbsp;    <a onclick="javascript:tagshow(event, '%E5%87%BD%E6%95%B0');" href="javascript:;" target=_self><u><strong><font color=#656d77>鍑芥暟</font></strong></u></a>鐨勮皟鐢ㄦ椂浼犻佹暟鎹紝閫氳繃DCOM鍙互鍦ㄤ笉鍚屼富鏈洪棿浼犻佹暟鎹?/p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/72928.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-02-03 18:53 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/02/03/72928.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>緋葷粺鍑虹幇涔辯爜浜?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/01/13/71905.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 13 Jan 2009 08:10:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/01/13/71905.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/71905.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/01/13/71905.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/71905.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/71905.html</trackback:ping><description><![CDATA[<p>鏄ㄥぉ榪樺湪鎰熷徆钀藉悗浜嗗ソ鍑犲勾,瑁呬簡涓涓狹SN,涓涓嬪瓙灝辮浜嗕竴涓?.0鐨?鍙互璺熶笂鏃朵唬浜嗗惂,緹庣編鐨勫姞浜嗕竴鐣ソ鍙?浠婂ぉ鎵撳紑鐢?shù)鑴?鍙戠幇鎴戠殑寮濮嬪氨鏄劇ず涓烘垜涓嶈璇嗙殑鏂囧瓧浜?<br><br>涓瘨浜?榪欐槸鎴戠殑絎竴涓弽搴?涓嶄細鍚?鐪嬫潵榪欎釜榪樻槸闂鍟?鎯蟲兂鏄ㄥぉ灝辮浜嗕竴涓猰sn,浼間箮涔熷畨瀹夊垎鍒嗙殑鍐欏啓紼嬪簭,閭h偗瀹氭槸鎴戠殑msn紼嬪簭鍑洪棶棰樹簡.浜庢槸鎶樿吘浜嗗崐澶?鎶妋sn閮藉嵏鎺変簡,鍙戠幇鍘熸潵緋葷粺榪樻槸鍧忕殑.<br><br>鑾潪鍥犱負鎴戞槸鐩楃増,灝變笉璁╂垜鐢ㄤ箞?<br><br>鍏堜笉綆¢偅涔堝浜?涓婄綉鎼滄悳,鏈変漢璇存槸娉ㄥ唽琛ㄤ腑娑夊強font鐨勪竴浜涘兼湁鎵鏀瑰彉,璁よ鐪熺湡鐨勫姣斾簡涓涓嬪拰鍚屼簨鐨勫尯鍒?濂藉儚娌℃湁浠涔堝樊鍒?榪欐槸鎬庝箞鍥炰簨鍛?<br><br>鏉姣?鎵湪椹?浼間箮閮借繘琛屼簡,濂藉儚娌℃湁浠涔堝弽鏄?姝ゆ椂,鎴戣瘯鐫鏇存崲浜嗕竴浜涗富棰?鎭?濂戒簡.<br><br>闂鏄В鍐充簡,浣嗘槸涓嶆槑鐧芥槸浠涔堝師鍥犻犳垚鐨?鍛靛懙,灝遍粯璁や簡鍚?<br><br>鐥囩姸榪樻槸姣旇緝杞葷殑,鍙槸瀵硅瘽妗嗙殑鏍囬浠涔堢殑,涓浜涘揩鎹鋒彁紺烘槸涔辯爜,鏂囦歡榪樻槸濂藉ソ鐨?鍚﹀垯鎴戜及璁¤鍝畫浜?</p> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/71905.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-01-13 16:10 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/01/13/71905.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>windows mobile涓浣曡皟鐢ㄦ棤綰垮彂閫佺晫闈?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/01/06/71367.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Tue, 06 Jan 2009 11:04:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/01/06/71367.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/71367.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/01/06/71367.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/71367.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/71367.html</trackback:ping><description><![CDATA[<br>濡備綍璋冪敤鏃犵嚎鍙戦佺晫闈?<br>緋葷粺鏈?鎴戜負浠涔堣鑷繁鍐欏憿?鎶辯潃榪欐牱涓縐嶆佸害,鏌ユ壘璋冪敤鏃犵嚎鍙戦佺晫闈㈢殑鏂瑰紡,鍦ㄤ竴閬嶉亶鑻﹁嫤鎼滃涓?娌℃湁鎵懼埌絳旀.鏀懼純,鑷繁鍐欎簡.浣嗘槸浠婂ぉ鍐嶈皟璇曠殑鏃跺?鏁堟灉杈句笉鍒扮郴緇熼偅涔堝ソ.涓嶆竻妤氱郴緇熸庝箞鍘誨仛鐨?<br><br>浣嗙獊鐒舵兂鐪嬬湅鑻辨枃緋葷粺涓棤綰垮彂閫佹槸鎬庝箞鍐欑殑,鏌ヤ簡涓涓?Beam File",涓轟粈涔堟垜娌℃湁灝濊瘯涓涓嬬敤榪欎釜鏉ユ煡鏌ュ憿?<br><br>鏋滅劧鏈変簡鏂板彂鐜?<br><br>閫氳繃涓嬮潰涓涓畝鍗曠殑璇彞,鎴戜滑灝卞彲浠ュ湪PPC涓婅皟鐢ㄧ郴緇熺殑鏃犵嚎鍙戦佺晫闈簡.<br>    CreateProcess(_T("<a href="file://Windows//Beam.exe">\\Windows\\Beam.exe</a>"), _T("<a href="file://My/">\\My</a> Documents\\Birthday_gift.gif"),  NULL, NULL, FALSE, 0,<br>                            NULL, NULL, NULL, NULL);<br><br>寰堟槸涓嶉敊鍚?<br><br>浣嗘槸榪欎釜鍙槸鍦≒PC涓婇傜敤.鍦╯martphone涓婃槸鎬庢牱鐨?鍦╳indows鐩綍涓?鎴戝彂鐜頒簡榪欐牱涓涓墽琛屾枃浠禕eamSP.exe,浣嗘槸濡備綍鎵ц鎴戣繕娌℃湁鎯沖嚭鏉?鐢ㄤ笂闈㈢殑鏂規(guī)硶鏄涓嶉氱殑. 濡傛灉浣犺鐭ラ亾鐨勮瘽,鍛婅瘔鎴戜竴澹板晩.<br><br><br>濂戒笢瑗夸竴璧峰垎浜? <img src ="http://m.shnenglu.com/SpringSnow/aggbug/71367.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-01-06 19:04 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/01/06/71367.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬debug鍜宺elease鐨勪竴鐐圭枒鎯?/title><link>http://m.shnenglu.com/SpringSnow/archive/2009/01/05/71244.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Mon, 05 Jan 2009 11:16:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2009/01/05/71244.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/71244.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2009/01/05/71244.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/71244.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/71244.html</trackback:ping><description><![CDATA[<p>鐤戞儜錛屽緢鏄枒鎯戠殑涓涓棶棰樸?br><br>涓嬪崍鎴戦亣鍒拌繖涔堜竴涓棶棰橈紝鎴戝湪紼嬪簭閲岄潤鎬佸姞杞戒竴涓猟ll錛岃繖涓猟ll鏄垜鑷繁鍐欑殑銆傛垜鎶奷ll鍦╮elease鐜涓嬬紪璇戯紝綆縐頒負A鍚э紝鍙︿竴涓▼搴忔槸鍦╠ebug鐜涓嬭繘琛岀紪璇戠殑錛岀畝縐頒負B鍚с侭浼氳皟鐢ˋ錛屼絾鏄湪璋冪敤涓氨鍑洪敊浜嗐?br><br>A 涓皟鐢˙鐨勪唬鐮佸涓嬶細<br></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">std::vector</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">ITEMDATA</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"> vcData;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top>GetValue(vcData);</span></div> <p><br><br>B 涓殑浠g爜涓?br>    </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://m.shnenglu.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> GetValue(std::vector</span><span style="COLOR: #000000"><</span><span style="COLOR: #000000">ITEMDATA</span><span style="COLOR: #000000">></span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">&</span><span style="COLOR: #000000">vcData)<br><img id=Codehighlighter1_45_113_Open_Image onclick="this.style.display='none'; Codehighlighter1_45_113_Open_Text.style.display='none'; Codehighlighter1_45_113_Closed_Image.style.display='inline'; Codehighlighter1_45_113_Closed_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockStart.gif" align=top><img id=Codehighlighter1_45_113_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_45_113_Closed_Text.style.display='none'; Codehighlighter1_45_113_Open_Image.style.display='inline'; Codehighlighter1_45_113_Open_Text.style.display='inline';" src="http://m.shnenglu.com/Images/OutliningIndicators/ContractedBlock.gif" align=top></span><span id=Codehighlighter1_45_113_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://m.shnenglu.com/Images/dot.gif"></span><span id=Codehighlighter1_45_113_Open_Text><span style="COLOR: #000000">{<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>   ……<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    ITEMDATA item;<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>   ……<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    vcData.push_back(item);<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/InBlock.gif" align=top>    ……<br><img src="http://m.shnenglu.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</span></span></div> <br>浣嗘槸紼嬪簭姣忚蛋瀹孏etValue鍚庡氨鎶涘紓甯鎬簡銆?br><br>浣嗘槸濡傛灉涓や釜鐜閮戒負debug錛屾垨閮戒負release鐨勮瘽錛岄兘姝e父錛屼絾鏄鏋滀笉鍚岀殑璇濓紝灝變細鍑洪敊銆?br><br>姣旇緝閮侀椃浜嗐? <img src ="http://m.shnenglu.com/SpringSnow/aggbug/71244.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2009-01-05 19:16 <a href="http://m.shnenglu.com/SpringSnow/archive/2009/01/05/71244.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓轟粈涔圡icrosoft code sample鍊懼悜浣跨敤ZeroMemory鑰屼笉鏄瘂0}? http://m.shnenglu.com/SpringSnow/archive/2008/12/20/69905.htmlSandySandySat, 20 Dec 2008 07:04:00 GMThttp://m.shnenglu.com/SpringSnow/archive/2008/12/20/69905.htmlhttp://m.shnenglu.com/SpringSnow/comments/69905.htmlhttp://m.shnenglu.com/SpringSnow/archive/2008/12/20/69905.html#Feedback1http://m.shnenglu.com/SpringSnow/comments/commentRss/69905.htmlhttp://m.shnenglu.com/SpringSnow/services/trackbacks/69905.html涓轟粈涔圡icrosoft code sample鍊懼悜浣跨敤ZeroMemory鑰屼笉鏄瘂0}?

榪欐槸鏈榪戠湅鐨勪竴鐗囩煭鏂囩殑title錛屽綋鏃跺氨寰堝ソ濂囥?br>緇忓父鏌ラ槄MSDN鐨勭▼搴忓憳閮戒細鏈夎繖涓嵃璞★紝寰蔣code sample涓父瑙佺殑鏄痁eroMemory錛岃屼笉鏄璦鎻愪緵鐨?#8220;{0}”娓呴浂鍔熻兘錛堜笉榪囷紝鎴戜竴鐩翠篃娌℃湁闂釜why錛夈俢++璇硶涓0鏄庡鏁扮粍鎴栫函緇撴瀯錛坰truct錛夛紝鍙互浣跨敤渚嬪SPerson sTest = {0}; 鏉ュ皢鎵鏈夋垚鍛樼疆0.

閭g瘒鏂囩珷鐨勮В閲婃槸錛孧icrosoft浣跨敤ZeroMemory浼氭洿clear錛屽洜涓?#8220;= {0}” 榪欐牱鐨勮娉曟湁浜涚敓鍍伙紝涓嶆槸鎵鏈変漢閮藉彲浠ヤ竴涓嬪瓙鏄庣櫧銆?/p>

瀹為檯涓婏紝涓よ呰繕鏄湁涓浜涘尯鍒?br>鍏朵竴錛孼eroMemory浼氬皢緇撴瀯鎵鏈夊瓧鑺傜疆0錛岃?{0}鍙細灝嗘垚鍛樼疆0錛屽叾涓璸adding瀛楄妭涓嶅彉銆?/p>

鍏朵簩錛屼絾涓涓猻truct鏈夋瀯閫犲嚱鏁版垨铏氬嚱鏁版椂錛孼eroMemory鍙互錛岃?{0}浼氱紪璇戜笉榪囥傛樉鐒訛紝鍚庤呰搗鍒頒簡涓浜涗繚鎶や綔鐢紝鍥犱負瀵逛竴涓湁铏氬嚱鏁扮殑瀵硅薄浣跨敤ZeroMemory鏃訛紝浼氬皢鍏惰櫄鍑芥暟鐨勬寚閽堢疆0錛岃繖鏄潪甯稿嵄闄╃殑錛屽洜涓鴻皟鐢ㄨ櫄鍑芥暟鏃訛紝紼嬪簭鏄劇劧浼歝rash銆傚弬鐪嬪涓嬩唬鐮侊細

struct SPerson
{
    
//SPerson(){    }
    char c;
    
float s;
}
;

class CTestVirtual
{
public:
    CTestVirtual()
    
{
    }


    
virtual int Draw()
    
{
        
return 10;
    }


    
int a;
}
;

void Test() 
{
    
char sztmp[20];
    ZeroMemory(sztmp, 
sizeof(sztmp));

    SPerson sTest 
= {0};
    
int i = sizeof(SPerson);

    
//CTestVirtual otv = {0};    //Compire error
    CTestVirtual tv;
    ZeroMemory(
&tv, sizeof(tv));
    tv.Draw();        
//As it is an object, don't use the virtual function pointer, so don't crash.
    CTestVirtual *pTv = &tv;
    pTv
->Draw();    //Crash!!!
}

鍥犳錛屽湪windows騫沖彴涓嬶紝瀵逛簬鏁扮粍鎴栫函緇撴瀯浣跨敤ZeroMemory鏄畨鍏ㄧ殑錛屽浜巆lass錛屽垯浣跨敤鏋勯犲嚱鏁幫紝涓嶈璋冪敤ZeroMemory銆傚鏋滄湁璺ㄥ鉤鍙拌姹傦紝浣跨敤錛漿0}鍒欏彲浠ュ噺灝戜竴浜涘伐浣溿?

Sandy 2008-12-20 15:04 鍙戣〃璇勮
]]>
LPTSTR鐨勮璇?/title><link>http://m.shnenglu.com/SpringSnow/archive/2008/12/19/69865.html</link><dc:creator>Sandy</dc:creator><author>Sandy</author><pubDate>Fri, 19 Dec 2008 13:10:00 GMT</pubDate><guid>http://m.shnenglu.com/SpringSnow/archive/2008/12/19/69865.html</guid><wfw:comment>http://m.shnenglu.com/SpringSnow/comments/69865.html</wfw:comment><comments>http://m.shnenglu.com/SpringSnow/archive/2008/12/19/69865.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/SpringSnow/comments/commentRss/69865.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/SpringSnow/services/trackbacks/69865.html</trackback:ping><description><![CDATA[鍘熻皡鎴戞棤鐭?瀵筁PTSTR涓嶆槸寰堢啛鎮(zhèn)?灝界鐢ㄤ簡鍗婂勾鐨刉IN32,浠婂ぉ鎵嶆兂璧鋒濊僉PTSTR榪欎釜鍙橀噺.<br><br>渚嬪:<br>LPTSTR lpStr = _T("Hello");<br>int len1 = wcslen(lpStr); // 鍊間負5<br>int len2 = sizeof(lpStr); // 鍊間負4<br><br>鍘熸潵鏄繖鏍風(fēng)殑鍟?浠婂ぉ鎴戠粓浜庡紕鏄庣櫧浜?<br><br>lpStr 鏄竴涓寚閽?瀹冪殑鐢ㄦ硶搴旇涓庢寚閽堝悓.<br><br>鐘簡涓涓緢浣庣駭鐨勯敊璇?璁板綍涓嬫潵.<br> <img src ="http://m.shnenglu.com/SpringSnow/aggbug/69865.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/SpringSnow/" target="_blank">Sandy</a> 2008-12-19 21:10 <a href="http://m.shnenglu.com/SpringSnow/archive/2008/12/19/69865.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <a href="http://m.shnenglu.com/">青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品</a> <div style="position:fixed;left:-9000px;top:-9000px;"><font id="pjuwb"></font><button id="pjuwb"><pre id="pjuwb"></pre></button><sub id="pjuwb"></sub><tbody id="pjuwb"><var id="pjuwb"><address id="pjuwb"></address></var></tbody><listing id="pjuwb"><label id="pjuwb"><strong id="pjuwb"></strong></label></listing><wbr id="pjuwb"><small id="pjuwb"><tbody id="pjuwb"></tbody></small></wbr><ins id="pjuwb"><xmp id="pjuwb"></xmp></ins><style id="pjuwb"></style><label id="pjuwb"><em id="pjuwb"><li id="pjuwb"></li></em></label><samp id="pjuwb"></samp><menu id="pjuwb"><input id="pjuwb"></input></menu><pre id="pjuwb"><tbody id="pjuwb"><tfoot id="pjuwb"><button id="pjuwb"></button></tfoot></tbody></pre><form id="pjuwb"></form><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"><sup id="pjuwb"></sup></label></style></i><li id="pjuwb"><table id="pjuwb"><abbr id="pjuwb"></abbr></table></li><video id="pjuwb"></video><dfn id="pjuwb"></dfn><progress id="pjuwb"></progress><strong id="pjuwb"></strong><mark id="pjuwb"></mark><em id="pjuwb"></em><tbody id="pjuwb"><p id="pjuwb"><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike></p></tbody><option id="pjuwb"></option><strike id="pjuwb"></strike><u id="pjuwb"></u><td id="pjuwb"><center id="pjuwb"><tr id="pjuwb"></tr></center></td><em id="pjuwb"><mark id="pjuwb"><em id="pjuwb"><tt id="pjuwb"></tt></em></mark></em><strong id="pjuwb"></strong><wbr id="pjuwb"></wbr><s id="pjuwb"></s><strong id="pjuwb"></strong><legend id="pjuwb"></legend><nav id="pjuwb"></nav><dl id="pjuwb"><th id="pjuwb"><dl id="pjuwb"></dl></th></dl><noframes id="pjuwb"><ins id="pjuwb"></ins></noframes><font id="pjuwb"></font><strike id="pjuwb"><i id="pjuwb"><style id="pjuwb"><label id="pjuwb"></label></style></i></strike><output id="pjuwb"></output><thead id="pjuwb"><pre id="pjuwb"></pre></thead><source id="pjuwb"></source><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem><pre id="pjuwb"><span id="pjuwb"><pre id="pjuwb"><big id="pjuwb"></big></pre></span></pre><cite id="pjuwb"><fieldset id="pjuwb"><s id="pjuwb"><rt id="pjuwb"></rt></s></fieldset></cite><big id="pjuwb"><progress id="pjuwb"><big id="pjuwb"></big></progress></big><samp id="pjuwb"><delect id="pjuwb"></delect></samp><dl id="pjuwb"></dl><strike id="pjuwb"><nav id="pjuwb"><dl id="pjuwb"><strong id="pjuwb"></strong></dl></nav></strike><tbody id="pjuwb"><b id="pjuwb"><optgroup id="pjuwb"><rp id="pjuwb"></rp></optgroup></b></tbody><em id="pjuwb"></em><xmp id="pjuwb"><blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote></xmp> <i id="pjuwb"><abbr id="pjuwb"><i id="pjuwb"><abbr id="pjuwb"></abbr></i></abbr></i><center id="pjuwb"><acronym id="pjuwb"><center id="pjuwb"></center></acronym></center><pre id="pjuwb"></pre><ul id="pjuwb"><thead id="pjuwb"></thead></ul><blockquote id="pjuwb"><pre id="pjuwb"><sup id="pjuwb"></sup></pre></blockquote><acronym id="pjuwb"></acronym><big id="pjuwb"><s id="pjuwb"></s></big><th id="pjuwb"></th><th id="pjuwb"></th><tbody id="pjuwb"></tbody><thead id="pjuwb"><strike id="pjuwb"></strike></thead><th id="pjuwb"><dl id="pjuwb"><wbr id="pjuwb"></wbr></dl></th><dl id="pjuwb"><strong id="pjuwb"></strong></dl><abbr id="pjuwb"><noframes id="pjuwb"><noscript id="pjuwb"></noscript></noframes></abbr><td id="pjuwb"><ol id="pjuwb"></ol></td><li id="pjuwb"><noscript id="pjuwb"><abbr id="pjuwb"></abbr></noscript></li><small id="pjuwb"><bdo id="pjuwb"><nav id="pjuwb"></nav></bdo></small><style id="pjuwb"></style><optgroup id="pjuwb"><table id="pjuwb"></table></optgroup><center id="pjuwb"><tr id="pjuwb"><dfn id="pjuwb"></dfn></tr></center><th id="pjuwb"></th><u id="pjuwb"></u><tfoot id="pjuwb"><legend id="pjuwb"><i id="pjuwb"></i></legend></tfoot><mark id="pjuwb"></mark><meter id="pjuwb"></meter><nav id="pjuwb"></nav><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><acronym id="pjuwb"><pre id="pjuwb"><acronym id="pjuwb"><ul id="pjuwb"></ul></acronym></pre></acronym><nobr id="pjuwb"></nobr><sub id="pjuwb"><th id="pjuwb"><menuitem id="pjuwb"><wbr id="pjuwb"></wbr></menuitem></th></sub><thead id="pjuwb"><sub id="pjuwb"></sub></thead><ul id="pjuwb"><address id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></address></ul><dfn id="pjuwb"></dfn><pre id="pjuwb"></pre><input id="pjuwb"><cite id="pjuwb"><fieldset id="pjuwb"></fieldset></cite></input><u id="pjuwb"><form id="pjuwb"><u id="pjuwb"></u></form></u><kbd id="pjuwb"><em id="pjuwb"><mark id="pjuwb"></mark></em></kbd><tr id="pjuwb"></tr><del id="pjuwb"><form id="pjuwb"><address id="pjuwb"></address></form></del><tfoot id="pjuwb"><legend id="pjuwb"><ol id="pjuwb"><dl id="pjuwb"></dl></ol></legend></tfoot><menu id="pjuwb"><nobr id="pjuwb"><th id="pjuwb"><nobr id="pjuwb"></nobr></th></nobr></menu><fieldset id="pjuwb"></fieldset><pre id="pjuwb"><blockquote id="pjuwb"><samp id="pjuwb"></samp></blockquote></pre><xmp id="pjuwb"><sup id="pjuwb"><pre id="pjuwb"></pre></sup></xmp><span id="pjuwb"><progress id="pjuwb"></progress></span><font id="pjuwb"></font><var id="pjuwb"><abbr id="pjuwb"></abbr></var><strong id="pjuwb"><label id="pjuwb"><i id="pjuwb"><legend id="pjuwb"></legend></i></label></strong><tr id="pjuwb"><em id="pjuwb"><em id="pjuwb"><output id="pjuwb"></output></em></em></tr><thead id="pjuwb"><strike id="pjuwb"></strike></thead> <acronym id="pjuwb"></acronym><i id="pjuwb"></i><tt id="pjuwb"></tt><rt id="pjuwb"><source id="pjuwb"><rt id="pjuwb"></rt></source></rt><strike id="pjuwb"><acronym id="pjuwb"></acronym></strike><del id="pjuwb"></del><font id="pjuwb"><output id="pjuwb"><ins id="pjuwb"><output id="pjuwb"></output></ins></output></font><kbd id="pjuwb"><tr id="pjuwb"><kbd id="pjuwb"></kbd></tr></kbd><pre id="pjuwb"><sup id="pjuwb"><delect id="pjuwb"><samp id="pjuwb"></samp></delect></sup></pre><samp id="pjuwb"></samp><track id="pjuwb"></track><tr id="pjuwb"></tr><center id="pjuwb"></center><fieldset id="pjuwb"></fieldset><i id="pjuwb"></i><td id="pjuwb"></td><rt id="pjuwb"></rt><object id="pjuwb"></object><pre id="pjuwb"><progress id="pjuwb"><sub id="pjuwb"><thead id="pjuwb"></thead></sub></progress></pre><kbd id="pjuwb"><tr id="pjuwb"><option id="pjuwb"></option></tr></kbd><output id="pjuwb"><ins id="pjuwb"></ins></output><ol id="pjuwb"></ol><source id="pjuwb"></source><strong id="pjuwb"></strong><ruby id="pjuwb"></ruby><sub id="pjuwb"><meter id="pjuwb"><menuitem id="pjuwb"><meter id="pjuwb"></meter></menuitem></meter></sub><pre id="pjuwb"></pre><center id="pjuwb"></center><tr id="pjuwb"><tbody id="pjuwb"><xmp id="pjuwb"><dd id="pjuwb"></dd></xmp></tbody></tr><video id="pjuwb"></video><pre id="pjuwb"></pre><form id="pjuwb"><optgroup id="pjuwb"></optgroup></form><samp id="pjuwb"></samp><kbd id="pjuwb"></kbd><strong id="pjuwb"><option id="pjuwb"></option></strong><object id="pjuwb"></object><abbr id="pjuwb"><noframes id="pjuwb"><abbr id="pjuwb"></abbr></noframes></abbr><ul id="pjuwb"><del id="pjuwb"><button id="pjuwb"><pre id="pjuwb"></pre></button></del></ul><abbr id="pjuwb"></abbr><strong id="pjuwb"><code id="pjuwb"><strong id="pjuwb"></strong></code></strong><option id="pjuwb"></option><optgroup id="pjuwb"><bdo id="pjuwb"><code id="pjuwb"></code></bdo></optgroup><mark id="pjuwb"><em id="pjuwb"><font id="pjuwb"></font></em></mark><acronym id="pjuwb"><code id="pjuwb"></code></acronym><dl id="pjuwb"></dl><em id="pjuwb"></em><object id="pjuwb"><input id="pjuwb"><object id="pjuwb"></object></input></object><output id="pjuwb"><dd id="pjuwb"></dd></output><option id="pjuwb"><button id="pjuwb"><option id="pjuwb"></option></button></option><small id="pjuwb"></small></div> <a href="http://hwgjcm.com" target="_blank">91久久久久久国产精品</a>| <a href="http://8558585.com" target="_blank">亚洲自拍偷拍色片视频</a>| <a href="http://aijiaoji.com" target="_blank">欧美少妇一区二区</a>| <a href="http://605054.com" target="_blank">亚洲视频在线观看视频</a>| <a href="http://www-893333.com" target="_blank">日韩一区二区精品葵司在线</a>| <a href="http://799858.com" target="_blank">国产精品国产三级国产普通话99</a>| <a href="http://expolucy.com" target="_blank">亚洲欧洲av一区二区</a>| <a href="http://08xxxc.com" target="_blank">欧美大色视频</a>| <a href="http://scratbag.com" target="_blank">亚洲欧美日本精品</a>| <a href="http://7213523.com" target="_blank">亚洲免费黄色</a>| <a href="http://6661639.com" target="_blank">在线成人av</a>| <a href="http://8181777.com" target="_blank">亚洲欧美一级二级三级</a>| <a href="http://4466777.com" target="_blank">欧美成人午夜激情</a>| <a href="http://9952222.com" target="_blank">久久久久久69</a>| <a href="http://avse69.com" target="_blank">午夜精品久久久久久久</a>| <a href="http://fanwenok.com" target="_blank">亚洲日本成人</a>| <a href="http://thisisfil.com" target="_blank">国产女人aaa级久久久级</a>| <a href="http://wawabt.com" target="_blank">欧美极品色图</a>| <a href="http://gbandal.com" target="_blank">久久久国产精品一区</a>| <a href="http://www433ad.com" target="_blank">亚洲一区二区不卡免费</a>| <a href="http://s0247.com" target="_blank">玖玖在线精品</a>| <a href="http://ayxchc.com" target="_blank">久久野战av</a>| <a href="http://555415.com" target="_blank">亚洲精一区二区三区</a>| <a href="http://9876666.com" target="_blank">国产欧美va欧美va香蕉在</a>| <a href="http://789583.com" target="_blank">亚洲特级片在线</a>| <a href="http://330310c.com" target="_blank">亚洲国产成人在线视频</a>| <a href="http://060607.com" target="_blank">亚洲女人天堂av</a>| <a href="http://4hup23.com" target="_blank">亚洲天堂免费观看</a>| <a href="http://bjjxgcsxy.com" target="_blank">9久re热视频在线精品</a>| <a href="http://caoliu2022.com" target="_blank">尤物网精品视频</a>| <a href="http://77777de.com" target="_blank">欧美日韩在线视频一区</a>| <a href="http://hbdfgq.com" target="_blank">欧美日韩免费网站</a>| <a href="http://wogoyao.com" target="_blank">欧美日韩国语</a>| <a href="http://bcjianyan.com" target="_blank">欧美午夜精彩</a>| <a href="http://8eya.com" target="_blank">国产精品成人免费精品自在线观看</a>| <a href="http://hhhtalk.com" target="_blank">欧美激情精品久久久久久蜜臀</a>| <a href="http://haochen072.com" target="_blank">久久久亚洲成人</a>| <a href="http://119552.com" target="_blank">久久婷婷人人澡人人喊人人爽</a>| <a href="http://cloakok.com" target="_blank">欧美亚洲一区二区在线观看</a>| <a href="http://40346c.com" target="_blank">亚洲一区二区在线看</a>| <a href="http://gztcm01.com" target="_blank">亚洲天堂免费观看</a>| <a href="http://4488269.com" target="_blank">亚洲一二三区在线观看</a>| <a href="http://huohuoglobal.com" target="_blank">一本色道精品久久一区二区三区</a>| <a href="http://322033.com" target="_blank">亚洲日本在线视频观看</a>| <a href="http://cz-hongbangfloor.com" target="_blank">亚洲国产福利在线</a>| <a href="http://xpj493.com" target="_blank">亚洲精品视频在线看</a>| <a href="http://4008305555.com" target="_blank">亚洲精品免费一区二区三区</a>| <a href="http://119773.com" target="_blank">亚洲精品网站在线播放gif</a>| <a href="http://china391.com" target="_blank">亚洲精品永久免费</a>| <a href="http://china391.com" target="_blank">亚洲一区亚洲</a>| <a href="http://32tun.com" target="_blank">欧美在线观看网站</a>| <a href="http://674446.com" target="_blank">久久人人97超碰精品888</a>| <a href="http://649929.com" target="_blank">乱人伦精品视频在线观看</a>| <a href="http://857sds.com" target="_blank">欧美福利影院</a>| <a href="http://baigoso.com" target="_blank">国产精品久久久久免费a∨大胸</a>| <a href="http://aqd072.com" target="_blank">国产精品久久久久婷婷</a>| <a href="http://www201314.com" target="_blank">国产在线精品二区</a>| <a href="http://www330849.com" target="_blank">亚洲激情在线激情</a>| <a href="http://wwwmy77757.com" target="_blank">一区二区三区精品在线</a>| <a href="http://www3344xz.com" target="_blank">午夜久久久久久</a>| <a href="http://sp106.com" target="_blank">欧美sm重口味系列视频在线观看</a>| <a href="http://92ebook.com" target="_blank">亚洲承认在线</a>| <a href="http://ju5558.com" target="_blank">亚洲影视综合</a>| <a href="http://eguge.com" target="_blank">亚洲欧洲日本在线</a>| <a href="http://cp88966.com" target="_blank">亚洲愉拍自拍另类高清精品</a>| <a href="http://chukewang.com" target="_blank">久久久www免费人成黑人精品</a>| <a href="http://770456.com" target="_blank">欧美极品aⅴ影院</a>| <a href="http://yzsss.com" target="_blank">欧美国产日本</a>| <a href="http://yeepey.com" target="_blank">国产精品伦理</a>| <a href="http://nvpuwo22.com" target="_blank">狠狠色丁香婷婷综合</a>| <a href="http://wwwen41.com" target="_blank">亚洲精品国产精品乱码不99 </a>| <a href="http://hjaa7.com" target="_blank">亚洲精品国产系列</a>| <a href="http://cscjxs.com" target="_blank">国产欧美亚洲一区</a>| <a href="http://6hzl8.com" target="_blank">久久久免费av</a>| <a href="http://aa56789.com" target="_blank">亚洲一区二区动漫</a>| <a href="http://birhit.com" target="_blank">久久夜色精品国产亚洲aⅴ</a>| <a href="http://ydy8.com" target="_blank">欧美成人一二三</a>| <a href="http://9952222.com" target="_blank">国产精品国内视频</a>| <a href="http://6w7y.com" target="_blank">亚洲成人自拍视频</a>| <a href="http://340332.com" target="_blank">好看的日韩视频</a>| <a href="http://378682.com" target="_blank">中文国产成人精品</a>| <a href="http://cnc800.com" target="_blank">久久久久久久网</a>| <a href="http://hwlxwp.com" target="_blank">99伊人成综合</a>| <a href="http://17ang.com" target="_blank">久久久欧美精品sm网站</a>| <a href="http://sishengnv.com" target="_blank">欧美久久婷婷综合色</a>| <a href="http://96ykm.com" target="_blank">国语自产精品视频在线看一大j8 </a>| <a href="http://jgj230230.com" target="_blank">亚洲在线视频观看</a>| <a href="http://wwwn94.com" target="_blank">狂野欧美激情性xxxx</a>| <a href="http://123yongjiu.com" target="_blank">国产精品一区在线观看</a>| <a href="http://0370city.com" target="_blank">中日韩美女免费视频网站在线观看</a>| <a href="http://33wbwb.com" target="_blank">一本久道久久综合婷婷鲸鱼</a>| <a href="http://9273829.com" target="_blank">麻豆成人在线播放</a>| <a href="http://k-dchina.com" target="_blank">亚洲一区在线观看视频</a>| <a href="http://huangsedy.com" target="_blank">欧美国产第一页</a>| <a href="http://m10669.com" target="_blank">国产一级久久</a>| <a href="http://5252bnet.com" target="_blank">亚洲欧美怡红院</a>| <a href="http://ez4444.com" target="_blank">亚洲精品免费网站</a>| <a href="http://zj-jufeng.com" target="_blank">欧美成人a∨高清免费观看</a>| <a href="http://seqing9.com" target="_blank">国产在线欧美日韩</a>| <a href="http://cctbdy.com" target="_blank">欧美亚洲在线观看</a>| <a href="http://www99mmnn.com" target="_blank">亚洲美女av黄</a>| <a href="http://227c7.com" target="_blank">欧美大色视频</a>| <a href="http://188293.com" target="_blank">久久久综合网站</a>| <a href="http://mengmujia.com" target="_blank">欧美日韩你懂的</a>| <a href="http://xiyan88.com" target="_blank">久久综合亚州</a>| <a href="http://haochen072.com" target="_blank">国产精品五月天</a>| <a href="http://hnspygxjscyfwzx.com" target="_blank">欧美激情综合色</a>| <a href="http://66y3.com" target="_blank">国产无一区二区</a>| <a href="http://jav69me.com" target="_blank">一区二区三区视频免费在线观看</a>| <a href="http://btbt7086.com" target="_blank">在线免费高清一区二区三区</a>| <a href="http://233116.com" target="_blank">在线亚洲美日韩</a>| <a href="http://wg246.com" target="_blank">99国产精品久久久久久久久久</a>| <a href="http://17ccem.com" target="_blank">欧美一区二区视频在线观看</a>| <a href="http://www40255.com" target="_blank">亚洲午夜精品网</a>| <a href="http://160160160.com" target="_blank">欧美精品免费在线</a>| <a href="http://xcao10.com" target="_blank">欧美黄污视频</a>| <a href="http://917729.com" target="_blank">亚洲第一黄网</a>| <a href="http://ctmhotel.com" target="_blank">欧美在线3区</a>| <a href="http://m10669.com" target="_blank">久久精品亚洲国产奇米99</a>| <a href="http://5c55c5c.com" target="_blank">欧美日韩一区二区国产</a>| <a href="http://muwendada.com" target="_blank">亚洲高清不卡</a>| <a href="http://5657hh.com" target="_blank">亚洲国产精品久久久久婷婷884</a>| <a href="http://my6557.com" target="_blank">欧美一区二区三区免费在线看 </a>| <a href="http://710191.com" target="_blank">国产精品视频一二三</a>| <a href="http://coolpaly.com" target="_blank">亚洲精品美女91</a>| <a href="http://www344399.com" target="_blank">亚洲精品激情</a>| <a href="http://04oy.com" target="_blank">免费国产一区二区</a>| <a href="http://874805.com" target="_blank">久久综合久久综合久久综合</a>| <a href="http://caopormo.com" target="_blank">精品91在线</a>| <a href="http://kk1xx-com.com" target="_blank">日韩视频―中文字幕</a>| <a href="http://ddnwater.com" target="_blank">欧美亚洲一级片</a>| <a href="http://woniuminsu.com" target="_blank">亚洲欧洲av一区二区</a>| <a href="http://428368.com" target="_blank">欧美日韩国产一区二区三区地区 </a>| <a href="http://csmgxun.com" target="_blank">一区二区三区国产精品</a>| <a href="http://345kt.com" target="_blank">欧美电影电视剧在线观看</a>| <a href="http://1397979.com" target="_blank">免费观看成人网</a>| <a href="http://677679.com" target="_blank">尤妮丝一区二区裸体视频</a>| <a href="http://wwwxigua66.com" target="_blank">欧美一区二区三区成人</a>| <a href="http://215920.com" target="_blank">久久美女性网</a>| <a href="http://my6557.com" target="_blank">亚洲第一成人在线</a>| <a href="http://663747.com" target="_blank">免费成人高清在线视频</a>| <a href="http://k68c.com" target="_blank">亚洲黄色在线视频</a>| <a href="http://laoyewo.com" target="_blank">av成人免费</a>| <a href="http://556995.com" target="_blank">国产精品九九久久久久久久</a>| <a href="http://www-772773.com" target="_blank">一区二区av在线</a>| <a href="http://sz-changrong.com" target="_blank">亚洲在线一区</a>| <a href="http://www134rr.com" target="_blank">国产日本欧美在线观看</a>| <a href="http://wu52vip.com" target="_blank">欧美在线播放一区二区</a>| <a href="http://www49718.com" target="_blank">久久夜色精品一区</a>| <a href="http://119553.com" target="_blank">在线看片第一页欧美</a>| <a href="http://bmcshy.com" target="_blank">久久综合五月天婷婷伊人</a>| <a href="http://filmcameralibrary.com" target="_blank">免费日韩视频</a>| <a href="http://hellomusiczone.com" target="_blank">99精品国产高清一区二区</a>| <a href="http://pgd857.com" target="_blank">欧美日韩中文在线观看</a>| <a href="http://www-44442.com" target="_blank">亚洲午夜日本在线观看</a>| <a href="http://9113c.com" target="_blank">久久精品视频免费观看</a>| <a href="http://www25sds.com" target="_blank">在线精品亚洲</a>| <a href="http://621767.com" target="_blank">欧美午夜欧美</a>| <a href="http://8p3c.com" target="_blank">欧美资源在线</a>| <a href="http://by27333.com" target="_blank">亚洲国产成人91精品</a>| <a href="http://18av-2.com" target="_blank">亚洲一区制服诱惑</a>| <a href="http://56667r.com" target="_blank">国产亚洲欧美日韩美女</a>| <a href="http://baidijs.com" target="_blank">毛片一区二区三区</a>| <a href="http://569688.com" target="_blank">在线综合欧美</a>| <a href="http://556995.com" target="_blank">老**午夜毛片一区二区三区</a>| <a href="http://by3799.com" target="_blank">亚洲国产精品一区二区www在线</a>| <a href="http://yeyesaoqi.com" target="_blank">欧美电影免费观看</a>| <a href="http://18cgh.com" target="_blank">午夜国产不卡在线观看视频</a>| <a href="http://xsjgxx.com" target="_blank">欧美sm重口味系列视频在线观看</a>| <a href="http://www278999.com" target="_blank">一区二区av在线</a>| <a href="http://www930666.com" target="_blank">国产亚洲午夜</a>| <a href="http://3644688.com" target="_blank">欧美成人69av</a>| <a href="http://nxhjzddata.com" target="_blank">亚洲欧美一区二区激情</a>| <a href="http://javdb04.com" target="_blank">亚洲国产精品va在线看黑人动漫</a>| <a href="http://ziwufuren.com" target="_blank">亚洲一区三区电影在线观看</a>| <a href="http://www068hs.com" target="_blank">国产欧美一区二区精品忘忧草 </a>| <a href="http://668www.com" target="_blank">亚洲欧美日韩精品久久奇米色影视</a>| <a href="http://797298.com" target="_blank">久久精品国产清高在天天线</a>| <a href="http://kongtou8.com" target="_blank">激情久久五月天</a>| <a href="http://www134rr.com" target="_blank">欧美日韩精品在线</a>| <a href="http://tongrenyaoye.com" target="_blank">欧美影院视频</a>| <a href="http://belerbb.com" target="_blank">亚洲黄色在线观看</a>| <a href="http://bjmrkj.com" target="_blank">美国成人毛片</a>| <a href="http://njhuike.com" target="_blank">香蕉亚洲视频</a>| <a href="http://jizzdo.com" target="_blank">日韩网站在线观看</a>| <a href="http://yhc26.com" target="_blank">影音欧美亚洲</a>| <a href="http://www-55655.com" target="_blank">欧美日韩在线视频观看</a>| <a href="http://azaz7.com" target="_blank">欧美中文在线字幕</a>| <a href="http://7373se.com" target="_blank">亚洲日本中文字幕区</a>| <a href="http://yashikeji.com" target="_blank">久久蜜桃精品</a>| <a href="http://wwwok1965.com" target="_blank">亚洲一区二区成人</a>| <a href="http://3848404.com" target="_blank">亚洲大黄网站</a>| <a href="http://www777788c.com" target="_blank">海角社区69精品视频</a>| <a href="http://176sfsf.com" target="_blank">欧美视频日韩</a>| <a href="http://04781900.com" target="_blank">久久视频精品在线</a>| <a href="http://eastasp.com" target="_blank">久久精品视频在线看</a>| <a href="http://xingmaipet.com" target="_blank">久热精品视频在线观看一区</a>| <a href="http://maoming365.com" target="_blank">欧美一区二视频</a>| <a href="http://038226.com" target="_blank">亚洲精品在线二区</a>| <a href="http://hjaa7.com" target="_blank">欧美99久久</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>