锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产免费久久久久久无码,久久美女人爽女人爽,亚洲天堂久久精品http://www.shnenglu.com/error/category/20617.htmlzh-cnMon, 17 Jul 2017 15:51:28 GMTMon, 17 Jul 2017 15:51:28 GMT60 cocos-js瀹氭椂鍣ㄧ畝鍗曚簡瑙?/title><link>http://www.shnenglu.com/Error/archive/2017/07/12/215091.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Wed, 12 Jul 2017 07:20:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2017/07/12/215091.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/215091.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2017/07/12/215091.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/215091.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/215091.html</trackback:ping><description><![CDATA[<div>瀹氭椂鍣ㄤ嬌鐢細錛坈ocos璨屼技娌℃湁鎻愪緵璇︾粏鍙傛暟鏂囨。錛屽弬鏁版暟閲忎笉涓鏍風殑鏃跺欐瘡涓弬鏁拌〃杈劇殑鍚箟涓嶄竴鏍鳳紝浣跨敤濡傛灉闂錛岃鑷璇諱唬鐮侊紝鍚﹀垯鐪熶笉鐭ラ亾姣忎釜鍙傛暟鐨勫惈涔夋槸浠涔堬級</div><div>------------------------------------------------------------------------------</div><div><span style="white-space:pre"> </span>1.娉ㄥ唽瀹氭椂鍣?/div><div><span style="white-space:pre"> </span>//C++: js_CCScheduler_schedule</div><div><span style="white-space:pre"> </span>cc.director._scheduler.schedule(this, this.onTimerTest.bind(this), 1, cc.REPEAT_FOREVER, 0, false, "keyCountDownTime");</div><div><span style="white-space:pre"> </span>2.瀹氭椂鍣ㄥ洖璋冨師鍨?/div><div><span style="white-space:pre"> </span>onTimerTest : function (interval) {</div><div><span style="white-space:pre"> </span>3.鍙栨秷瀹氭椂鍣?/div><div><span style="white-space:pre"> </span>cc.director._scheduler.unschedule("keyCountDownTime", this);</div><div>------------------------------------------------------------------------------</div><div><span style="white-space:pre"> </span>cc.director._scheduler.schedule(this, this.onTimerTest.bind(this), 1);</div><div><span style="white-space:pre"> </span>cc.director._scheduler.unschedule(this, this.onTimerTest.bind(this));</div><div>------------------------------------------------------------------------------</div><div><span style="white-space:pre"> </span>鐩存帴璋冪敤node娉ㄥ唽錛屽彲浠ョ渷鐣ョ涓涓猼arget鍙傛暟</div><div>------------------------------------------------------------------------------</div><div><span style="white-space:pre"> </span>鏆傛椂娌℃湁鍙戠幇鑳界洿鎺ヤ嬌鐢╢ree鍑芥暟鍋氬畾鏃跺櫒</div><img src ="http://www.shnenglu.com/Error/aggbug/215091.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2017-07-12 15:20 <a href="http://www.shnenglu.com/Error/archive/2017/07/12/215091.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jenkins Windows bash緙栬瘧閿欒鍒ゅ畾http://www.shnenglu.com/Error/archive/2017/06/26/215029.htmlEnicEnicMon, 26 Jun 2017 06:49:00 GMThttp://www.shnenglu.com/Error/archive/2017/06/26/215029.htmlhttp://www.shnenglu.com/Error/comments/215029.htmlhttp://www.shnenglu.com/Error/archive/2017/06/26/215029.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/215029.htmlhttp://www.shnenglu.com/Error/services/trackbacks/215029.htmlexit 1   #鍛楄瘑鍒負緙栬瘧澶辮觸


姣?5騫村垰鍒氭帴瑙︾殑鏃跺欑◢寰ソ鐢ㄧ偣浜嗭紝鑷沖皯svn涓枃璺緞錛宑make鏀寔錛宎ndroid鎵撳寘浠涔堢殑閮芥湁浜嗭紝鏈夊繀瑕佸啀娣卞叆鐪嬩竴鐐硅祫鏂欎簡
鍙﹀涓轟簡鐢ㄨ搗鏉ユ柟渚垮懡浠よ榪橀渶瑕佸浜嗚В鐐癸細java -jar jenkins-cli.jar -s http://22.11.140.38:9080/jenkins/  help

Enic 2017-06-26 14:49 鍙戣〃璇勮
]]>
鍏充簬UI鐨勫嚑縐嶈璁℃ā寮忥紝寮涓錛屼粬鏃ヨ璧鋒潵浜嗗啀緇嗗寲錛?/title><link>http://www.shnenglu.com/Error/archive/2017/06/01/214965.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Thu, 01 Jun 2017 09:34:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2017/06/01/214965.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/214965.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2017/06/01/214965.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/214965.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/214965.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><br /><span style="color: #0000FF; ">namespace</span> DesignPattern<br />{<br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍒嗙M鍜孷鐨勪唬鐮?/span><span style="color: #008000; "><br /></span>    <span style="color: #0000FF; ">namespace</span> MV<br />    {<br />        <span style="color: #0000FF; ">class</span> Model<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> View<br />        {<br /><br />        };<br />    };<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍒囨柇V瀵筂鐨勭洿鎺ヨ闂紝瀵筂鎿嶄綔鐨勪唬鐮佺敱C闆嗕腑瀹屾垚錛孧鍙渶瑕佸仛濂芥洿鏂板埌V鐨勬搷浣?/span><span style="color: #008000; "><br /></span>    <span style="color: #0000FF; ">namespace</span> MVC<br />    {<br />        <span style="color: #0000FF; ">class</span> Model<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> View<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> Controller<br />        {<br /><br />        };<br />    };<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍒囨柇M-V鐨勮﹀悎錛屽彉鍖栫殑浠g爜闆嗕腑鍒癙錛屽仛鍒癕鍜孷瀹屽叏闅旂</span><span style="color: #008000; "><br /></span>    <span style="color: #0000FF; ">namespace</span> MVP<br />    {<br />        <span style="color: #0000FF; ">class</span> Model<br />        {<br /><br />        };<br /><br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍦∕VP妯″紡閲岋紝View鍙簲璇ユ湁綆鍗曠殑Set/Get鐨勬柟娉曪紝鐢ㄦ埛鐢ㄦ埛杈撳叆鍜岃緗晫闈㈡樉紺虹殑鍐呭錛?br />        </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 闄ゆ灝變笉搴旇鏈夋洿澶氱殑鍐呭錛岀粷涓嶅璁哥洿鎺ョ洿鎺ヨ闂甅odel</span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">class</span> View<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> Presenter <br />        {<br /><br />        };<br />    };<br /><br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 鏈変簡緇戝畾浠ュ悗瀹炵幇錛屽叾瀹炲拰MVP濂藉儚娌′粈涔堝お澶у尯鍒紝鍔熻兘鍑犵鍒癡M涓?/span><span style="color: #008000; "><br /></span>    <span style="color: #0000FF; ">namespace</span> MVVM<br />    {<br />        <span style="color: #0000FF; ">class</span> Model<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> View<br />        {<br /><br />        };<br /><br />        <span style="color: #0000FF; ">class</span> ViewModel<br />        {<br /><br />        };<br />    };<br /><br /><br />}</div><img src ="http://www.shnenglu.com/Error/aggbug/214965.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2017-06-01 17:34 <a href="http://www.shnenglu.com/Error/archive/2017/06/01/214965.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>cocos鎺ュ叆bugly鑾峰彇宕╂簝鍫嗘爤http://www.shnenglu.com/Error/archive/2017/04/17/214864.htmlEnicEnicMon, 17 Apr 2017 11:51:00 GMThttp://www.shnenglu.com/Error/archive/2017/04/17/214864.htmlhttp://www.shnenglu.com/Error/comments/214864.htmlhttp://www.shnenglu.com/Error/archive/2017/04/17/214864.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214864.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214864.html1.bugly sdk鏁翠釜鐩綍鎷瘋礉鍒癱ocos_sdk/external
2.鍦ㄩ」鐩腑灝哹ugly_sdk/agent/android/*.jar;bugly_sdk/android/*.jar鎷瘋礉鍒伴」鐩甽ibs鐩綍.!!!璁板緱瑕佹坊鍔犲埌java鐨凴eferenced Libraries鍚﹀垯鏄笉鐢熸晥鐨勩?/div>
  褰撳墠闇瑕佸姞鍏ヨ繘鏉ョ殑鏄袱涓猨ar鍖咃紝涓涓猻dk鐨勪竴涓彃浠剁殑
3.鍦ㄩ」鐩腑灝哹ugly_sdk/android/*.so鎷瘋礉鍒伴」鐩殑jni/prebuilt
4.Android.mk鏂囦歡璋冩暣錛?/div>
#闆嗘垚libBugly.so錛屾坊鍔犲湪LOCAL_PATH := $(call my-dir)
LOCAL_MODULE := bugly_native_prebuilt
LOCAL_SRC_FILES := prebuilt/$(TARGET_ARCH_ABI)/libBugly.so
include $(PREBUILT_SHARED_LIBRARY)
#寮曠敤bugly/Android.mk瀹氫箟鐨凪odule錛屽湪LOCAL_STATIC_LIBRARIES := xxx涔嬪悗
LOCAL_STATIC_LIBRARIES += bugly_crashreport_cocos_static
#娣誨姞鍦ㄦ湯灝?/div>
$(call import-module, external/bugly)
5.緙栬緫AndroidManifest.xml娣誨姞鏉冮檺錛?/div>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />
6.鍒濆鍖?/div>
鍦ˋppDelegate::applicationDidFinishLaunching()鎺ュ彛璋冪敤CrashReport::initCrashReport(addId, debug)
7.瀹為檯嫻嬭瘯娣誨姞瀹屾垚鍚庡ぇ姒傚崐灝忔椂鍚庣敓鏁?/div>

Enic 2017-04-17 19:51 鍙戣〃璇勮
]]>2017-04-16錛歝ocos-js濡備綍浣跨敤plist鍥劇墖錛寃eb騫沖彴鏃犳硶浣跨敤ccuihttp://www.shnenglu.com/Error/archive/2017/04/16/214857.htmlEnicEnicSun, 16 Apr 2017 15:54:00 GMThttp://www.shnenglu.com/Error/archive/2017/04/16/214857.htmlhttp://www.shnenglu.com/Error/comments/214857.htmlhttp://www.shnenglu.com/Error/archive/2017/04/16/214857.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214857.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214857.html// plsit嫻嬭瘯
cc.log("begin test plist");
cc.spriteFrameCache.addSpriteFrames("res/hall_entrance.plist");
//var imageView = new ccui.ImageView("#hall_enter_3.png");  閿欒鐢ㄦ硶錛宩s閲岃竟闇瑕侀氳繃ccui.Widget.PLIST_TEXTURE鍙傛暟鏄庣‘鎸囧畾
var imageView = new ccui.ImageView("hall_enter_3.png", ccui.Widget.PLIST_TEXTURE);
this.addChild(imageView);




ccui浣跨敤錛?br />鍦╬roject.json涓殑modules灞炴т慨鏀逛負錛?modules" : ["cocos2d","extensions"],


Enic 2017-04-16 23:54 鍙戣〃璇勮
]]>2017-04-11http://www.shnenglu.com/Error/archive/2017/04/11/214833.htmlEnicEnicTue, 11 Apr 2017 15:36:00 GMThttp://www.shnenglu.com/Error/archive/2017/04/11/214833.htmlhttp://www.shnenglu.com/Error/comments/214833.htmlhttp://www.shnenglu.com/Error/archive/2017/04/11/214833.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214833.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214833.htmlQ1錛氭庝箞杈撳嚭鏃ュ織
A1錛歝c.log();
Q2: 鏃ュ織鎬庝箞鏍煎紡鍖栬緭鍑?/div>
A2錛歝c.log("%d-%s", 123321, 'abc'); 鐩祴鍜孋綾諱技錛屼及璁″拰console.log涔熺被浼鹼紝搴旇鍩虹鐨刯s涔﹂噷杈瑰氨鏈夛紝鏀瑰ぉ涓撻棬鐮旂┒
Q3錛氫負浠涔堣幏鍙栧埌鐨凚utton銆丼prite絳夋帶浠剁殑contentSize鏄?0, 0)
A3: 搴斾負娌℃湁鍦╮esource.js涓坊鍔狅紝娣誨姞浠ュ悗灝辮兘鎴愬姛鑾峰彇鍒皊ize錛岃〃鐜板拰native涓鏍蜂簡銆傜寽嫻嬪彲鑳芥槸鍦ㄥ浘鐗囧姞杞界殑鏃跺欏仛浜嗛澶勭悊銆?/div>


Enic 2017-04-11 23:36 鍙戣〃璇勮
]]>綆鍗曞垎鏋恈ocos2d::Sequence::create鍑芥暟鐨勫彲鍙樺弬鏁板疄鐜幫紝浠ュ強C++ 1X浼樺寲鏂瑰紡璁ㄨhttp://www.shnenglu.com/Error/archive/2017/04/04/214807.htmlEnicEnicTue, 04 Apr 2017 05:11:00 GMThttp://www.shnenglu.com/Error/archive/2017/04/04/214807.htmlhttp://www.shnenglu.com/Error/comments/214807.htmlhttp://www.shnenglu.com/Error/archive/2017/04/04/214807.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214807.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214807.html// ConsoleApplication2.cpp : 瀹氫箟鎺у埗鍙板簲鐢ㄧ▼搴忕殑鍏ュ彛鐐廣?br />//

#include "stdafx.h"
#include <iostream>
#include <cstdarg>
#include <vector>

// 鍙樺弬鍑芥暟渚嬪瓙
// 涓笉鍖呭惈綾誨瀷淇℃伅錛屼笉鍖呭惈鏁伴噺淇℃伅銆傜浉瀵逛紭闆呯殑瑙e喅鏂瑰紡鏈変袱涓細
// 1.綾諱技printf鐨勬柟寮忥紝閫氳繃fmt瀛楃涓茶В鍐?br />// 2.綾諱技cocos::Sequence::create鐨勬柟寮忥紝搴斾負鍏ㄩ儴鏄姩鐢繪寚閽堬紝鎵浠ョ被鍨嬫槸綰﹀畾濂界殑緇熶竴綾誨瀷錛岀粨鏉熸爣璁板彲浠ヤ嬌鐢∟ULL鏍囪
void ParametListTest(int nStart, )
{
    // 瀹氫箟涓涓弬鏁板垪琛紝鐢ㄤ簬鎺ユ敹瑙f瀽""
    va_list parametList;

    // 杈撳嚭絎竴涓弬鏁?/span>
    std::cout << nStart << std::endl;

    // nStart鏄?#8216;’涔嬪墠鏈鍚庝竴涓嚱鏁板弬鏁幫紝鐢ㄤ簬鍐呭瓨瀹氫綅錛岃幏鍙杙arametList
    va_start(parametList, nStart);

    // 閲岃竟鐨勫叿浣撳弬鏁頒釜鏁版槸鑾峰彇涓嶅埌鐨?br />    // printf鐨勫鐞嗗拰榪欓噷涓嶄竴鏍鳳細printf鏍規嵁fmt瀛楃涓蹭腑鐨?%"鏍囪鏉ヨ悆鍙栧弬鏁扮被鍨嬨佹暟閲?/span>

    int nTem = 0;
    // 閲峱arametList鑾峰彇涓嬩竴涓被鍨嬩負int鐨勫彉閲?/span>
    nTem = va_arg(parametList, int);

    // -1浣滀負緇撴潫鏍囪
    while (-1 != nTem)
    {
        std::cout << nTem << std::endl;

        nTem = va_arg(parametList, int);
    }

    va_end(parametList);
}


// 妯$増鍙傛暟鏈鍚庝竴涓掑綊(甯﹂噸杞界殑閫掑綊)
void TParametListTest()
{
}

// C++ 1x鍙樺弬妯$増
template<typename T, typename  Args>
void TParametListTest(T nStart, Args  args)
{
    std::cout << nStart << std::endl;

    // 鍙互鐩存帴灞曞紑澶氬弬鏁扮殑瀹氫箟
    
// 閫掑綊涓嬈″弬鏁板噺灝戜竴涓紝鏈鍚庝細璋冪敤void閲嶈澆
    TParametListTest(args);
}





int main()
{
    // 鍋囪闇瑕佸疄鐜扮殑鍔熻兘鏄緭鍑猴紝榪欎釜demo宸茬粡婊¤凍鏉′歡
    
// 鍋囪闇瑕佸疄鐜扮殑鏄被浼糲ocos鐨勬椂搴忓姩鐢誨姛鑳斤紝鍏跺疄鎶妔td::cout鎹㈡垚鎴愬憳鍙橀噺錛屾垨鑰呮煇涓叏灞鍑芥暟鍗沖彲瀹炵幇

    ParametListTest(1, 2, 3, 3, 3, 3, -1);
    std::cout << "----------------------------" << std::endl;
    TParametListTest(1, 2, 3, 3, 3, 3);  // 閲囩敤1X鍙彉妯$増鍙傛暟璇硶瀹炵幇鐨勶紝鍙互鎶規帀鏈熬鐨勭粨鏉熸爣璁?br />
    return 0;
}


Enic 2017-04-04 13:11 鍙戣〃璇勮
]]>鍩轟簬rand鍜宮t19937闅忔満綆楁硶鐨勫懡涓鐜囪宸垎鏋?/title><link>http://www.shnenglu.com/Error/archive/2017/01/22/214622.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Sun, 22 Jan 2017 04:28:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2017/01/22/214622.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/214622.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2017/01/22/214622.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/214622.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/214622.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008000; ">//</span><span style="color: #008000; "> RandomTest.cpp : Defines the entry point for the console application.<br /></span><span style="color: #008000; ">//<br /></span><br />#include "stdafx.h"<br /><br />#include <iostream><br />#include <cmath><br />#include <random><br />#include <cstdint><br />#include <ctime><br />#include <algorithm><br />#include <numeric><br />#include <cassert><br />#include <climits><br />#include <thread><br /><br /><span style="color: #0000FF; ">#define</span> XASSERT(exp) assert(exp)<br /><span style="color: #0000FF; ">#define</span> XASSERT_MSG(exp, msg) assert(exp)<br /><span style="color: #0000FF; ">#define</span> X_DEFAULT_FLOAT_PRECISION (0.00000001)<br /><br /><span style="color: #008000; ">//</span><span style="color: #008000; "> @in: 鎬繪鏁般佺洰鏍囨瘮渚?鍗冨垎姣?銆佺畻娉曠被鍨?1.c鏍囧噯搴搑and; 2.cpp11 mt19937)<br /></span><span style="color: #008000; ">//</span><span style="color: #008000; "> @out: 瀹為檯鍛戒腑嬈℃暟銆佸疄闄呭懡涓鐜?/span><span style="color: #008000; "><br /></span><span style="color: #0000FF; ">bool</span> RandomHitTest(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t nAlgorithmType, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate);<br /><span style="color: #0000FF; ">void</span> RandomHitTest_std_mt19937(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate);<br /><span style="color: #0000FF; ">void</span> RandomHitTest_std_rand(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate);<br /><span style="color: #008000; ">//</span><span style="color: #008000; "> 綆鍖杝td::rand鑾峰彇[nMin, nMax]鍖洪棿鐨勪竴涓暟瀛?/span><span style="color: #008000; "><br /></span>uint32_t StdRandEx(uint32_t nMin, uint32_t nMax);<br /><br /><br /><span style="color: #0000FF; ">int</span> _tmain(<span style="color: #0000FF; ">int</span> argc, _TCHAR* argv[])<br />{<br />    <span style="color: #008000; ">//</span><span style="color: #008000; ">std::thread srandThread([](){ std::this_thread::sleep_for(std::chrono::seconds(1));});<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; ">srandThread.detach();</span><span style="color: #008000; "><br /></span><br />    std::vector<std::tuple<<span style="color: #0000FF; ">float</span>, <span style="color: #0000FF; ">float</span>>> vecResult;<br /><br />    <span style="color: #0000FF; ">for</span> (<span style="color: #0000FF; ">int</span> n = 0; n < 1000; n++)<br />    {<br />        uint32_t nTotalCount = 100000;  <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍩烘暟100000嬈?/span><span style="color: #008000; "><br /></span><br />        <span style="color: #0000FF; ">for</span> (<span style="color: #0000FF; ">float</span> fHitRate = 0.001f; 1.f - fHitRate >= 0; fHitRate = fHitRate + 0.101f)<br />        {<br />            int32_t nRealHitCount = 0;<br />            <span style="color: #0000FF; ">float</span> fRealHitRate = 0;<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; "> std::rand嫻嬭瘯</span><span style="color: #008000; "><br /></span>            RandomHitTest(nTotalCount, fHitRate, 1, nRealHitCount, fRealHitRate);<br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">std::cout << "AlgorithmType=" << 1 << ",TotlaCount=" << nTotalCount << ",HitRate=" << <br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">    fHitRate  << ",ReahHitRate=" << std::fixed << fRealHitRate << ",RealHitCount=" << nRealHitCount << std::endl;</span><span style="color: #008000; "><br /></span><br /><br />            int32_t nRealHitCount1 = 0;<br />            <span style="color: #0000FF; ">float</span> fRealHitRate1 = 0;<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; "> cpp11 mt19937</span><span style="color: #008000; "><br /></span>            RandomHitTest(nTotalCount, fHitRate, 2, nRealHitCount1, fRealHitRate1);<br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">std::cout << "AlgorithmType=" << 2 << ",TotlaCount=" << nTotalCount << ",HitRate=" << <br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">    fHitRate  << ",ReahHitRate=" << std::fixed << fRealHitRate1 << ",RealHitCount=" << nRealHitCount1 << std::endl;<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">std::cout << "---differ rate=" << std::fixed << fRealHitRate1 - fRealHitRate << ", differ count=" <br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">    << nRealHitCount1 - nRealHitCount << std::endl;</span><span style="color: #008000; "><br /></span><br />            std::tuple<<span style="color: #0000FF; ">float</span>, <span style="color: #0000FF; ">float</span>> tupleResult = std::make_tuple(fHitRate, std::fabsf(fRealHitRate1 - fRealHitRate));<br />            vecResult.push_back(tupleResult);<br />        }<br />    }<br /><br />    std::sort(vecResult.begin(), vecResult.end(), <br />        [](std::tuple<<span style="color: #0000FF; ">float</span>, <span style="color: #0000FF; ">float</span>>& tupLeft, std::tuple<<span style="color: #0000FF; ">float</span>, <span style="color: #0000FF; ">float</span>>& tupRight)-><span style="color: #0000FF; ">bool</span>{<br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">float fHitRateL = 0;<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">float fRealRateL = 0;<br /><br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">float fHitRateR = 0;<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">float fRealRateR = 0;</span><span style="color: #008000; "><br /></span>            <span style="color: #0000FF; ">return</span> std::<span style="color: #0000FF; ">get</span><1>(tupLeft) - std::<span style="color: #0000FF; ">get</span><1>(tupRight) > 0;;<br />    });<br /><br />    auto tupleFirst = vecResult[0];<br /><br />    <span style="color: #0000FF; ">return</span> 0;<br />}<br /><br /><br />uint32_t StdRandEx(uint32_t nMin, uint32_t nMax)<br />{<br />    XASSERT((nMin >= 0) && (nMax >= 0) && (nMin <= nMax));<br /><br />    uint32_t nRandVal = 0;<br /><br />    <span style="color: #0000FF; ">if</span> (nMin == nMax)<br />    {<br />        nRandVal = nMax;<br />    }<br />    <span style="color: #0000FF; ">else</span> <span style="color: #0000FF; ">if</span> (nMin < nMax)<br />    {<br />        nRandVal = rand() % (nMax - nMin + 1) + nMin;<br />    }<br />    <span style="color: #0000FF; ">else</span><br />    {<br />        XASSERT_MSG(0, _T("鍙傛暟寮傚父"));<br />    }<br /><br />    <span style="color: #0000FF; ">return</span> nRandVal;<br />}<br /><br /><span style="color: #0000FF; ">void</span> RandomHitTest_std_rand(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate)<br />{<br />    nRealHitCount = 0;<br />    fRealHitRate = 0;<br /><br />    <span style="color: #0000FF; ">if</span> (nTotalCount <= 0 || fHitRate <= 0)<br />    {<br />        <span style="color: #0000FF; ">return</span>;<br />    }<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 璁$畻嫻偣灝忔暟鐐逛釜鏁?/span><span style="color: #008000; "><br /></span>    int32_t nWeCount = 3;  <span style="color: #008000; ">//</span><span style="color: #008000; "> 浣嶆暟(涓変綅鏁幫紝鍗冨垎姣旂簿搴?</span><span style="color: #008000; "><br /></span>    XASSERT((fHitRate * std::pow(10, nWeCount)) - std::numeric_limits<uint64_t>::max() <= X_DEFAULT_FLOAT_PRECISION);  <span style="color: #008000; ">//</span><span style="color: #008000; "> 姘鎬笉婧㈠嚭</span><span style="color: #008000; "><br /></span>    int64_t nHitRateIntHelp = static_cast<uint64_t>(fHitRate * std::pow(10, nWeCount));  <span style="color: #008000; ">//</span><span style="color: #008000; "> 姒傜巼杞暣鏁拌緟鍔╄綆?br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 鏍規嵁浣嶆暟鍐沖畾闅忔満鏁拌寖鍥?/span><span style="color: #008000; "><br /></span>    int32_t nRandMin = 0;<br />    int32_t nRandMax = std::pow(10, nWeCount);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 寮濮嬫祴璇?/span><span style="color: #008000; "><br /></span>    auto nTestCount = nTotalCount;<br />    <span style="color: #0000FF; ">while</span> (nTestCount-- > 0)<br />    {<br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> 鐢熸垚闅忔満鏁?/span><span style="color: #008000; "><br /></span>        int32_t nRandVal = StdRandEx(nRandMin, nRandMax);<br /><br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> 鍛戒腑鍒ゅ畾</span><span style="color: #008000; "><br /></span>        <span style="color: #0000FF; ">if</span> (nRandVal < nHitRateIntHelp)<br />        {<br />            nRealHitCount++;<br />        }<br />    }<br /><br />    fRealHitRate = <span style="color: #0000FF; ">float</span>(nRealHitCount)/<span style="color: #0000FF; ">float</span>(nTotalCount);<br />}<br /><br /><span style="color: #0000FF; ">void</span> RandomHitTest_std_mt19937(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate)<br />{<br />    nRealHitCount = 0;<br />    fRealHitRate = 0;<br /><br />    <span style="color: #0000FF; ">if</span> (nTotalCount <= 0 || fHitRate <= 0)<br />    {<br />        <span style="color: #0000FF; ">return</span>;<br />    }<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 璁$畻嫻偣灝忔暟鐐逛釜鏁?/span><span style="color: #008000; "><br /></span>    int32_t nWeCount = 3;  <span style="color: #008000; ">//</span><span style="color: #008000; "> 浣嶆暟(涓変綅鏁幫紝鍗冨垎姣旂簿搴?</span><span style="color: #008000; "><br /></span>    XASSERT((fHitRate * std::pow(10, nWeCount)) - std::numeric_limits<uint64_t>::max() <= X_DEFAULT_FLOAT_PRECISION);  <span style="color: #008000; ">//</span><span style="color: #008000; "> 姘鎬笉婧㈠嚭</span><span style="color: #008000; "><br /></span>    int64_t nHitRateIntHelp = static_cast<uint64_t>(fHitRate * std::pow(10, nWeCount));  <span style="color: #008000; ">//</span><span style="color: #008000; "> 姒傜巼杞暣鏁拌緟鍔╄綆?br /><br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> 鏍規嵁浣嶆暟鍐沖畾闅忔満鏁拌寖鍥?/span><span style="color: #008000; "><br /></span>    int32_t nRandMin = 0;<br />    int32_t nRandMax = std::pow(10, nWeCount);<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 璁劇疆闅忔満鏁扮敓鎴愬櫒</span><span style="color: #008000; "><br /></span>    std::random_device rd;<br />    std::mt19937_64 gen(rd());<br />    std::uniform_int_distribution<> dis(nRandMin, nRandMax);<br />    <br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 閲嶈縐嶅瓙搴旇浣跨敤榪欎釜api錛?:CryptGenRandom<br />    </span><span style="color: #008000; ">//</span><span style="color: #008000; "> linux涔熸湁鐩稿簲鐨勯珮綺懼害闅忔満鏁?/span><span style="color: #008000; "><br /></span>    gen.seed(uint32_t(time(NULL)));<br /><br />    <span style="color: #008000; ">//</span><span style="color: #008000; "> 寮濮嬪懡涓祴璇?/span><span style="color: #008000; "><br /></span>    auto nTestCount = nTotalCount;<br />    <span style="color: #0000FF; ">while</span> (nTestCount-- > 0)<br />    {<br />        <span style="color: #008000; ">//</span><span style="color: #008000; "> 鐢熸垚闅忔満鏁?/span><span style="color: #008000; "><br /></span>        uint32_t randVal = dis(gen);<br /><br />        <span style="color: #0000FF; ">if</span> (randVal < nHitRateIntHelp)<br />        {<br />            nRealHitCount++;<br />        }<br />    }<br /><br />    fRealHitRate = <span style="color: #0000FF; ">float</span>(nRealHitCount)/<span style="color: #0000FF; ">float</span>(nTotalCount);<br />}<br /><br /><br /><span style="color: #0000FF; ">bool</span> RandomHitTest(int32_t nTotalCount, <span style="color: #0000FF; ">float</span> fHitRate, int32_t nAlgorithmType, int32_t& nRealHitCount, <span style="color: #0000FF; ">float</span>& fRealHitRate)<br />{<br />    <span style="color: #0000FF; ">if</span> (nTotalCount <= 0)<br />    {<br />        <span style="color: #0000FF; ">return</span> <span style="color: #0000FF; ">false</span>;<br />    }<br /><br />    <span style="color: #0000FF; ">bool</span> bRet = <span style="color: #0000FF; ">true</span>;<br />    <span style="color: #0000FF; ">switch</span> (nAlgorithmType)<br />    {<br />    <span style="color: #0000FF; ">case</span> 1:<br />        RandomHitTest_std_rand(nTotalCount, fHitRate, nRealHitCount, fRealHitRate);<br />        <span style="color: #0000FF; ">break</span>;<br />    <span style="color: #0000FF; ">case</span> 2:<br />        RandomHitTest_std_mt19937(nTotalCount, fHitRate, nRealHitCount, fRealHitRate);<br />        <span style="color: #0000FF; ">break</span>;<br />    <span style="color: #0000FF; ">default</span>:<br />        bRet = <span style="color: #0000FF; ">false</span>;<br />        <span style="color: #0000FF; ">break</span>;<br />    }<br /><br />    <span style="color: #0000FF; ">return</span> <span style="color: #0000FF; ">true</span>;<br />}<br /><br /></div><img src ="http://www.shnenglu.com/Error/aggbug/214622.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2017-01-22 12:28 <a href="http://www.shnenglu.com/Error/archive/2017/01/22/214622.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍒濇帰javascript 鍚嶅瓧絀洪棿http://www.shnenglu.com/Error/archive/2016/12/21/214525.htmlEnicEnicWed, 21 Dec 2016 02:15:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/21/214525.htmlhttp://www.shnenglu.com/Error/comments/214525.htmlhttp://www.shnenglu.com/Error/archive/2016/12/21/214525.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214525.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214525.html鏈鍩虹鐨勭帺娉曪細

var Plaza = {};
Plaza.HelloWorldLayer = cc.Layer

榪欐牱瑙e喅涓嶄簡澶氫釜鏂囦歡涓渶瑕佷嬌鐢ㄥ悓涓涓悕瀛楁帶浠惰屼笖闇瑕佸叡浜殑鎯呭喌銆?br />

var Plaza = Plaza || {};
Plaza.HelloWorldLayer = cc.Layer
榪欐牱綆鍗曞鐞嗚兘鎼炲畾銆?br />
鍙﹀榪樻湁濡備笅姣旇緝楂橀樁鐨勫嚱鏁扮帺娉曪細

(function(){                 
   var _NS=function(){ }
   _NS.prototype.alert
=function(){
      console.log(
'test');
}
window.NS
=new _NS();
})();


Enic 2016-12-21 10:15 鍙戣〃璇勮
]]>
欏圭洰cocos妗嗘灦閫傞厤璁劇疆http://www.shnenglu.com/Error/archive/2016/12/19/214523.htmlEnicEnicMon, 19 Dec 2016 10:07:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/19/214523.htmlhttp://www.shnenglu.com/Error/comments/214523.htmlhttp://www.shnenglu.com/Error/archive/2016/12/19/214523.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214523.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214523.htmlbSceneCutsomResolution鍐沖畾閫傞厤絳栫暐ResolutionPolicy::EXACT_FIT浼氱敤緙╂斁鎷変幾鐨勬柟寮忛傞厤

void
 CAutoScreen::SetSceneResolute(float w, float h, bool bSceneCutsomResolution)
{
    CAutoScreen::sceneCutsomResolution=bSceneCutsomResolution;

    if(bSceneCutsomResolution)
    {
        cocos2d::Size ls = Size(w, h);
        Size fs = Director::getInstance()->getOpenGLView()->getFrameSize();
        float sx = ls.width/fs.width;
        float sy = ls.height/fs.height;
    
        sceneResolute = ls;
    
        //瀹氫箟 scale 鍙橀噺
        resoluteBool = sx>sy;
        float scale = resoluteBool?sx:sy;
        SetSceneSize(resoluteBool?ls.width:fs.width*scale, resoluteBool?fs.height*scale:ls.height);
        SetSceneScale(resoluteBool?fs.height*scale/ls.height : fs.width*scale/ls.width);
    
        Director::getInstance()->getOpenGLView()->setDesignResolutionSize(GetSceneWidth(), GetSceneHeight(), ResolutionPolicy::SHOW_ALL);
    }
    else
    {
        sceneScale = 0.0f;
        sceneSize = Size(w, h);
        sceneResolute = Size(w, h);
        Director::getInstance()->getOpenGLView()->setDesignResolutionSize(w, h, ResolutionPolicy::EXACT_FIT);
    }
    Director::getInstance()->setContentScaleFactor(1.0f);
}


Enic 2016-12-19 18:07 鍙戣〃璇勮
]]>欏圭洰bug錛?016-15-15 鎵庨噾鑺辨葷粨綆梑ug錛氱己灝戞暟鎹佹暟鎹笉鍑嗙‘http://www.shnenglu.com/Error/archive/2016/12/15/214496.htmlEnicEnicThu, 15 Dec 2016 13:40:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/15/214496.htmlhttp://www.shnenglu.com/Error/comments/214496.htmlhttp://www.shnenglu.com/Error/archive/2016/12/15/214496.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214496.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214496.html



鏁版嵁鎻掑叆蹇樿浣跨敤浣跨敤鏁版嵁鎿嶄綔絎?br />





鏈互涓虹洿鎺ュ湪娓告垙緇撴潫鐨勪綅緗敹闆嗙粨鏉熸秷鎭紝緇撴灉緇撶畻鏄垎鏁e湪鍚勭瀹氭椂鍣ㄥ鐞嗕唬鐮佷腑鐨?br />

Enic 2016-12-15 21:40 鍙戣〃璇勮
]]>
欏圭洰bug妗堜緥錛?016-12-15 SetParamObject寮曡搗鐨勫唴瀛樺啓婧㈠嚭http://www.shnenglu.com/Error/archive/2016/12/15/214494.htmlEnicEnicThu, 15 Dec 2016 11:18:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/15/214494.htmlhttp://www.shnenglu.com/Error/comments/214494.htmlhttp://www.shnenglu.com/Error/archive/2016/12/15/214494.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214494.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214494.html





椋庨櫓鏉ヤ竴涓嬪嚑鐐癸細
1.姣忔淇濆瓨涓涓狽ode鑺傜偣瑁告寚閽堢殑鏃跺欙紝瑕佹剰璇嗗埌榪欐槸涓涓闄╂搷浣滐紝濡傛灉涓嶅閲嶈寰堝鏄撳簲涓哄父瑙勭殑鑺傜偣鎿嶄綔寮曡搗Node鏋愭瀯鍊掔疆閲庤妭鐐廣?br />2.鍦ㄨ璁PI鐨勬椂鍊欏敖閲忎繚璇?#8220;璇箟”姝g‘鎬э紝椋庢牸瑕?#8220;闅忓ぇ嫻?#8221;銆係et鍜孏et灝介噺涓嶅仛棰濆鍔ㄤ綔銆佸敖閲忎繚鎸佷竴鑷存с傚鏈夌壒孌婂鐞嗭紝闄ら潪姣棤鍓綔鐢紝鍚﹀垯灝介噺鎶婁俊鎭惡甯﹀埌鎺ュ彛鍚嶄腑銆?br />3.闈炴ц兘浼樺厛鐨勬ā鍧椾腑錛屾墍鏈夌殑鎺ュ彛涓瀹氳鍋氬叆鍙e弬鏁版嫻嬶紝鍑哄彛鏁版嵁媯嫻?br />4.鍦ㄦ搷浣滄暟緇勬椂涓瀹氳璁よ瘑鍒幫紝榪欐槸涓涓?#8220;楂橀闄?#8221;鎿嶄綔錛屽姟蹇呮嫻嬭闂槸鍚﹁偗鑳借秺鐣屻?br />5.姣忔++鎿嶄綔錛岄兘闇瑕佽冭檻++鎿嶄綔鍚庝細寮曡搗浠涔堝壇浣滅敤錛?+鏄惁鏄湁鑼冨洿鐨勶紝鐭ュ惁闇瑕佹帶鍒跺弽棣堬紝浠涔堟椂鍊欓渶瑕?-鍥炴潵

Enic 2016-12-15 19:18 鍙戣〃璇勮
]]>
欏圭洰bug錛?016-15-15 鍥涗漢鐗涚墰鏃犱漢鍙簞寮曡搗娓告垙寮濮嬫椂搴勫ID鏃犳晥鍊掔疆紼嬪簭寮傚父http://www.shnenglu.com/Error/archive/2016/12/15/214490.htmlEnicEnicThu, 15 Dec 2016 03:14:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/15/214490.htmlhttp://www.shnenglu.com/Error/comments/214490.htmlhttp://www.shnenglu.com/Error/archive/2016/12/15/214490.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214490.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214490.htmlbug錛氱帺瀹跺彨搴勯樁孌碉紝鏃犱漢鍙簞鐨勬椂鍊欙紝鍚庣畫閫昏緫浼氬け鎺с?br />鍘熷洜錛氭父鎴忛昏緫瑕佹眰蹇呴』鏈夊簞瀹訛紝浣嗘槸娌℃湁浜哄彨搴勩傚唴瀛樹腑鐨勫簞瀹跺皢鏄垵濮嬪寲鐨勬棤鏁堝箋?br />瑙e喅鏂規硶錛氬湪鐜╁鍙簞闃舵緇撴潫鍚庯紝濡傛灉娌℃湁浠諱綍浜哄彨搴勫繀欏昏鏈変竴涓粯璁ゅ簞瀹訛紝鍚﹀垯娓告垙鏃犳硶緇х畫榪涜涓嬪幓



Enic 2016-12-15 11:14 鍙戣〃璇勮
]]>
欏圭洰bug錛?016-15-15 sqlserver linkedserver寮曡搗鏌ヨ瓚呮椂http://www.shnenglu.com/Error/archive/2016/12/15/214488.htmlEnicEnicThu, 15 Dec 2016 02:36:00 GMThttp://www.shnenglu.com/Error/archive/2016/12/15/214488.htmlhttp://www.shnenglu.com/Error/comments/214488.htmlhttp://www.shnenglu.com/Error/archive/2016/12/15/214488.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/214488.htmlhttp://www.shnenglu.com/Error/services/trackbacks/214488.html鍙傝冮摼鎺ワ細
https://msdn.microsoft.com/zh-cn/library/ms190479.aspx
http://www.cnblogs.com/xinghuayang/p/LinkedServer_BulkInsert_PassDataTableAsParameter_BugHandlingProcess.html
http://www.cnblogs.com/zcttxs/p/3445629.html
綆鍗曟潵璇達紝linkedserver鐢ㄤ簬鍒嗗竷寮忔煡璇紝璁╀竴鍙版満鍣ㄥ彲浠ヨ繙紼嬭闂叾浠栨満鍣ㄧ殑瀛樺偍榪囩▼鍜屾暟鎹?br />
欏圭洰涓嚭鐜板嚑涓瓨鍌ㄨ繃紼嬫煡璇㈠紓甯革紝浣嗘槸codeview騫舵病鏈夊彂鐜板紓甯搞備絾鏄幓鎺夊垎甯冨紡閾炬帴鍓嶇紑浠ュ悗鎬ц兘鎻愬崌寰堝銆?br />浣跨敤sp_linkedservers鏌ヨ閾炬帴鑺傜偣淇℃伅濡備笅錛?br />
鏈湴鍦板潃鏄疞ocal鍒濇鍒嗘瀽涔熸槸娌℃湁闂鐨勶紝閬傜畝鍗曞鐞嗗幓鎺変簡鎵鏈塴ink璁塊棶浠g爜銆?br />
鍚庣畫鍒嗘瀽鍙兘鏄痵qlserver鍐呴儴浣跨敤gethosetbyname鑾峰彇local瀵瑰簲鐨刬p鍦板潃寮曡搗鏁呴殰銆傦紙榪欎釜鎿嶄綔鍙兘浼氭秹鍙婂埌dns鏈嶅姟鍣ㄥ弬涓庯級
鍙傝冮摼鎺ワ細http://blog.csdn.net/shijun_zhang/article/details/6577426


Enic 2016-12-15 10:36 鍙戣〃璇勮
]]>
欏圭洰bug妗堜緥錛?016-12-04 memcopy寮曡搗鍐呭瓨鍐欐孩鍑?/title><link>http://www.shnenglu.com/Error/archive/2016/12/14/214484.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Wed, 14 Dec 2016 12:16:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2016/12/14/214484.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/214484.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2016/12/14/214484.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/214484.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/214484.html</trackback:ping><description><![CDATA[<img src="http://www.shnenglu.com/images/cppblog_com/error/2.png" width="485" height="91" alt="" /><br /><img src="http://www.shnenglu.com/images/cppblog_com/error/1.png" width="861" height="628" alt="" /><br /><br /><br /><br /><img src="http://www.shnenglu.com/images/cppblog_com/error/3.png" width="515" height="264" alt="" /><img src ="http://www.shnenglu.com/Error/aggbug/214484.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2016-12-14 20:16 <a href="http://www.shnenglu.com/Error/archive/2016/12/14/214484.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>websocket鍒濇帰錛坈ocos錛?/title><link>http://www.shnenglu.com/Error/archive/2016/10/30/214368.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Sun, 30 Oct 2016 15:16:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2016/10/30/214368.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/214368.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2016/10/30/214368.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/214368.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/214368.html</trackback:ping><description><![CDATA[1.cocos鏈韓鍦╟pp妗嗘灦涓槸鎻愪緵浜唚s鐨?br />2.cocosjs鐗堟湰鍦╳eb涓婂繀鐒朵篃鏄彁渚涗簡ws鐨?br />3.緗戠粶鎿嶄綔鎯寵窇璧鋒潵錛寃s鍙槸涓涓熀紜錛屾湁浜嗚繛鎺ヤ互鍚庨渶瑕佽В鍐蟲暟鎹簭鍒楀寲鐨勯棶棰?br />4.濡傛灉閫夋嫨浜岃繘鍒跺崗璁紝棣栧厛ByteBuffer璺戜笉鎺夛紝鐒跺悗浼樺厛鑰冭檻浣跨敤protobuf銆傛渶緇堜竴濂楀紑涓鍧?a data-click="{ 'F':'77A717EA', 'F1':'9D73F1E4', 'F2':'4CA6DD6B', 'F3':'54E5343F', 'T':'1477839741', 'y':'1DE7EE7E' }" target="_blank" style="font-family: arial; font-size: medium; line-height: 24.64px;">dcode<span style="color: #cc0000;">IO</span></a><span style="color: #333333; font-family: arial; font-size: medium; line-height: 24.64px; background-color: #ffffff;">搴撳彲浠ユ悶瀹氾紝鍚庢湡鏈夌┖浜嗗彲浠ヨ瘯璇昿b3鑷甫鐨刯s錛屼笉榪囩湅璧鋒潵鍙兘鍦╪ode鐜涓嬬敤銆?nbsp;<br />5.鏈嶅姟鍣ㄥ湪github涓婃湁澶х鎵嬫捀鐨刢pp瑙g爜websocket鍗忚鐩稿叧浠g爜錛屼笉榪囦釜浜鴻寰楄偗瀹氭湁緙洪櫡鐨勶紝浣跨敤鎴愮啛涓鐐圭殑搴撲細鏇村ソ錛岃繖閲岄閫墂ebsocketpp銆傚皢鏉ヤ竾涓榪樻槸涓嶈錛屽氨鐩存帴鎹ava php c# go涔嬬被鐨勬彁渚涚殑ws鏍囧噯搴撶殑璇█銆備笉鍦ㄨ繖浜涢氱敤鏍囧噯鐨勭粏鑺備笂鎶樿吘錛屽敖閲忎嬌鐢ㄥ伐涓氬寲銆佹垚鐔熺殑緇勪歡銆?br /><br /><br /><br />鏁寸悊涓涓嬫濊礬錛?br />鏈嶅姟鍣ㄥ簲璇ユ湁涓涓獁s緗戝叧錛岀敤鏉ョ洃鍚瑆s绔彛錛屾帴鍙楀鎴風鍙戣搗鐨剋s閾炬帴錛屽茍淇濇寔蹇冭煩銆倃s緗戝叧涓嶇洿鎺ュ鐞唚s緗戠粶鏁版嵁錛岃屾槸杞彂緇欏唴緗戝疄闄呯殑妯″潡鍘匯?br /></span><div></div><img src ="http://www.shnenglu.com/Error/aggbug/214368.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2016-10-30 23:16 <a href="http://www.shnenglu.com/Error/archive/2016/10/30/214368.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>(杞? GDI GDI+鍙岀紦鍐?/title><link>http://www.shnenglu.com/Error/archive/2015/11/12/212250.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Thu, 12 Nov 2015 06:28:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/11/12/212250.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/212250.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/11/12/212250.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/212250.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/212250.html</trackback:ping><description><![CDATA[<div>GDI+浣跨敤鍙岀紦鍐茬粯鍥?/div> <div>————————————————————————</div> <div>鎴戝啀鏉ヨ緇嗚В閲婁竴涓嬪垰鎵嶅疄鐜板弻緙撳啿鐨勫叿浣撴楠わ細</div> <div>1銆佸湪鍐呭瓨涓緩绔嬩竴鍧?#8220;铏氭嫙鐢誨竷”錛?/div> <div>Bitmap bmp = new Bitmap(600, 600);</div> <div>2銆佽幏鍙栬繖鍧楀唴瀛樼敾甯冪殑Graphics寮曠敤錛?/div> <div>Graphics g = Graphics.FromImage(bmp);</div> <div>3銆佸湪榪欏潡鍐呭瓨鐢誨竷涓婄粯鍥撅細</div> <div>g.FillEllipse(brush, i * 10, j * 10, 10, 10);</div> <div>4銆佸皢鍐呭瓨鐢誨竷鐢誨埌紿楀彛涓?/div> <div>this.CreateGraphics().DrawImage(bmp, 0, 0);</div> <div></div> <div>====================</div> <div>maybe better</div> <div> <div> <div> <div class="oc8ig84" id="highlighter_698821" nogutter="" cpp="" ie"=""> <div><a command_help="" help"="" >?</a></div> <table border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td> <div> <div number1="" index0="" alt2"=""><code plain"="">CDC dcMemory; </code></div> <div number2="" index1="" alt1"=""><code plain"="">dcMemory.CreateCompatibleDC(&dc); </code></div> <div number3="" index2="" alt2"=""><code plain"="">CBitmap bmp; </code></div> <div number4="" index3="" alt1"=""><code plain"="">bmp.CreateCompatibleBitmap(&dc,1024,768); </code></div> <div number5="" index4="" alt2"=""><code plain"="">dcMemory.SelectObject(&bmp); </code></div> <div number6="" index5="" alt1"=""><code spaces"="">  </code> </div> <div number7="" index6="" alt2"=""><code plain"="">Graphics _Graphics(dcMemory.m_hDC); </code></div> <div number8="" index7="" alt1"=""><code plain"="">_Graphics.DrawImage(_pImage,0,0,1024,768); </code></div> <div number9="" index8="" alt2"=""><code comments"="">//榪欐槸鍦℅DI+涓殑鍐欐硶銆?</code></div> <div number10="" index9="" alt1"=""><code spaces"="">  </code> </div> <div number11="" index10="" alt2"=""><code plain"="">dc.BitBlt(0,0,1024,768,&dcMemory,0,0,SRCCOPY); </code></div> <div number12="" index11="" alt1"=""><code spaces"="">  </code> </div> <div number13="" index12="" alt2"=""><code plain"="">_Graphics.ReleaseHDC(dcMemory.m_hDC); </code></div> <div number14="" index13="" alt1"=""><code plain"="">dcMemory.DeleteDC(); </code></div> <div number15="" index14="" alt2"=""><code plain"="">bmp.DeleteObject(); </code></div></div></td></tr></tbody></table><br /><br /><br />-------------------------------------------------------------------------<br />琛ュ厖錛?br />1.瀵逛簬GDI甯歌鐨勫仛娉曢兘鏄疢emDC涓涓嬩笉瑙i噴浜?br />2.GDI+浼間箮涔熷彲浠ョ敤MemDC鐢熸垚涓涓猤raphics錛岀劧鍚庣敾濂戒簡錛屽湪鎶奙emDC bit鍒癢ndDC涓婏紝浣嗘槸浼氭湁鍚勭鍚勬牱鐨勯棶棰樸?br />3.涓嶇鏄偅縐嶆柟寮忥紝閮芥槸涓涓畻鏃細鐩存帴鎿嶄綔鍓嶅彴灞忓箷涓婄殑DC鍦ㄧ粯鍥劇殑榪囩▼涓細鏄懼緱姣旇緝鎱紝鎵浠ョ敓鎴愪竴涓唴瀛樼敾甯冿紝鎶婃墍鏈夌殑璐村浘鎿嶄綔閮藉湪涓嶅彲瑙佺殑鍐呭瓨鐢誨竷涓婃搷浣滃畬鎴愶紝鐒跺悗涓嬈℃ц創鍥懼埌鍓嶅彴DC涓娿傝繖鏍峰疄闄呬笂榪樺浜嗕竴嬈¤創鍥撅紝浣嗘槸瀵逛簬鍓嶅彴DC鐨勬搷浣滃凡緇忔槸鏃犻檺灝忎簡銆?br />4.GDI+榪樻湁涓縐嶆洿浼樼殑鏂瑰紡錛氬垱寤轟竴涓唴瀛榖itmap錛岀劧鍚庝粠鍐呭瓨bitmap鍒涘緩鍑篏DI+浣嶅浘錛岀劧鍚庝嬌鐢ㄥ仛涓綅鍥句綔涓烘覆鏌撶敾甯冦傛覆鏌撳畬鎴愬悗錛屽湪鐩存帴鎶奲itmap璐村浘鍒板墠鍙癉C涓婇潰鏉ワ紝鍐呭瓨涓殑bitmap鏄鐢ㄧ殑錛屼笉鐢ㄥ湪姣忎釜娓叉煋浜嬩歡涓噸鏂板垱寤恒?br />5.涓轟簡鏇村ソ鐨凣L鎴栬呭叾浠栫殑娓叉煋鎺ュ彛铻嶅悎錛屽熀浜巄itmap鐨勫唴瀛樼敾甯冨簲璇ユ槸鏈浼樼殑鍋氭硶銆?br /><br /><br /><br /><br /></div></div></div></div><img src ="http://www.shnenglu.com/Error/aggbug/212250.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-11-12 14:28 <a href="http://www.shnenglu.com/Error/archive/2015/11/12/212250.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>MS Sql 鏁版嵁搴撳浠?/title><link>http://www.shnenglu.com/Error/archive/2015/09/06/211763.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Sun, 06 Sep 2015 01:33:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/09/06/211763.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/211763.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/09/06/211763.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/211763.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/211763.html</trackback:ping><description><![CDATA[<span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">鏁版嵁搴撳浠藉疄渚?** </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**鏁版嵁搴撳浠藉疄渚?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**鏈變簩 2004騫?鏈?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**澶囦喚絳栫暐: </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**鏁版嵁搴撳悕:test </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**澶囦喚鏂囦歡鐨勮礬寰別:\backup </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**姣忎釜鏄熸湡澶╁噷鏅?鐐瑰仛涓嬈″畬鍏ㄥ浠?涓轟繚闄╄搗瑙?澶囦喚鍒頒袱涓悓鏍風殑瀹屽叏澶囦喚鏂囦歡test_full_A.bak鍜宼est_full_B.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**姣忓ぉ1鐐?闄や簡鏄熸湡澶?鍋氫竴嬈″樊寮傚浠?鍒嗗埆澶囦喚鍒頒袱涓枃浠秚est_df_A.bak鍜宼est_df_B.bak(閲囩敤闄勫姞鍒板師澶囦喚鐨勬柟寮? </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**姣忎竴涓皬鏃跺仛涓嬈′簨鍔℃棩蹇楀浠?鍒嗗埆澶囦喚鍒頒袱涓枃浠秚est_log_A.bak鍜宼est_log_B.bak(閲囩敤闄勫姞鍒板師澶囦喚鐨勬柟寮? </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">**/ </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--絎竴 瀹屽叏澶囦喚閮ㄥ垎 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_job @job_name = '瀹屽叏澶囦喚' </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ1,鎶婃暟鎹簱澶囦喚鍒皌est_full_backup_A.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '瀹屽叏澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP DATABASE Test TO DISK=''e:\backup\test_full_A.bak'' WITH INIT', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_fail_action=3, --澶辮觸鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_success_action=3,-- 鎴愬姛鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ2,鎶婃暟鎹簱澶囦喚鍒皌est_full_B.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '瀹屽叏澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp2', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP DATABASE Test TO DISK=''e:\backup\test_full_B.bak'' WITH INIT', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--璋冨害 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobschedule @job_name = '瀹屽叏澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@name = 'Schedule_1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_type = 8, -- 鎸夊懆 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_interval = 1, --姣忔槦鏈熷ぉ鎵ц </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_recurrence_factor=1, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@active_start_time = 10000 --寮濮嬫椂闂? 鍑屾櫒1鐐?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--絎簩 宸紓澶囦喚閮ㄥ垎 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_job @job_name = '宸紓澶囦喚' </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ1,鎶婃暟鎹簱澶囦喚鍒皌est_df_A.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '宸紓澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP DATABASE Test TO DISK=''e:\backup\test_df_A.bak'' WITH DIFFERENTIAL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_fail_action=3, --澶辮觸鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_success_action=3,-- 鎴愬姛鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ2,鎶婃暟鎹簱澶囦喚鍒皌est_df_B.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '宸紓澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp2', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP DATABASE Test TO DISK=''e:\backup\test_df_B.bak'' WITH DIFFERENTIAL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--璋冨害 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobschedule @job_name = '宸紓澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@name = 'Schedule_1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_type = 8, -- 鎸夊懆 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_interval = 126, --鏄熸湡涓鑷蟲槦鏈熷叚 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_recurrence_factor=1, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@active_start_time = 10000 --寮濮嬫椂闂? 鍑屾櫒1鐐?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--絎簩 浜嬪姟澶囦喚閮ㄥ垎 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_job @job_name = '浜嬪姟澶囦喚' </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ1,鎶婃暟鎹簱澶囦喚鍒皌est_log_A.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '浜嬪姟澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP LOG Test TO DISK=''e:\backup\test_log_A.bak''', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_fail_action=3, --澶辮觸鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@on_success_action=3,-- 鎴愬姛鍚庤漿鍒頒笅涓姝?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--鏂板浣滀笟姝ラ2,鎶婃暟鎹簱澶囦喚鍒皌est_log_B.bak </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobstep @job_name = '浜嬪姟澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@step_name = 'Setp2', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@subsystem = 'TSQL', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@command = 'BACKUP LOG Test TO DISK=''e:\backup\test_log_B.bak''', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_attempts = 5, </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@retry_interval = 5 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">--璋冨害 </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">EXEC sp_add_jobschedule @job_name = '浜嬪姟澶囦喚', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@name = 'Schedule_1', </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_type = 4, -- 鎸夊ぉ </span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_interval=1,--姣忎竴澶?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_subday_type=8, --鎸夊皬鏃?nbsp;</span><br style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px;" /><span style="font-family: Tahoma, Helvetica, Arial, 瀹嬩綋, sans-serif; line-height: 25.2000007629395px; background-color: #ddedfb;">@freq_subday_interval=1 --姣忎竴涓皬鏃?nbsp;</span><img src ="http://www.shnenglu.com/Error/aggbug/211763.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-09-06 09:33 <a href="http://www.shnenglu.com/Error/archive/2015/09/06/211763.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>錛堣漿錛塚C++ Runtime Error 寮傚父鎹曡幏涔嬩笉鎸傜殑紼嬪簭 ExceptionFilter娌℃湁璋冪敤錛屼笉鐢熸垚dump(WIN8.1宕╂簝)http://www.shnenglu.com/Error/archive/2015/08/28/211705.htmlEnicEnicFri, 28 Aug 2015 03:14:00 GMThttp://www.shnenglu.com/Error/archive/2015/08/28/211705.htmlhttp://www.shnenglu.com/Error/comments/211705.htmlhttp://www.shnenglu.com/Error/archive/2015/08/28/211705.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/211705.htmlhttp://www.shnenglu.com/Error/services/trackbacks/211705.htmlVC++ Runtime Error 寮傚父鎹曡幏涔嬩笉鎸傜殑紼嬪簭

 寰堝杞歡閫氳繃璁劇疆鑷繁鐨勫紓甯告崟鑾峰嚱鏁幫紝鎹曡幏鏈鐞嗙殑寮傚父錛岀敓鎴愭姤鍛婃垨鑰呮棩蹇楋紙渚嬪鐢熸垚mini-dump鏂囦歡錛夛紝杈懼埌Release鐗堟湰涓嬭拷韙狟ug鐨勭洰鐨勩備絾鏄紝鍒頒簡VS2005錛堝嵆VC8錛夛紝Microsoft瀵笴RT錛圕榪愯鏃跺簱錛夌殑涓浜涗笌瀹夊叏鐩稿叧鐨勪唬鐮佸仛浜嗕簺鏀瑰姩錛屽吀鍨嬬殑錛屼緥濡傚鍔犱簡瀵圭紦鍐叉孩鍑虹殑媯鏌ャ傛柊CRT鐗堟湰鍦ㄥ嚭鐜伴敊璇椂寮哄埗鎶婂紓甯告姏緇欓粯璁ょ殑璋冭瘯鍣紙濡傛灉娌℃湁閰嶇疆鐨勮瘽錛岄粯璁ゆ槸Dr.Watson錛夛紝鑰屼笉鍐嶉氱煡搴旂敤紼嬪簭璁劇疆鐨勫紓甯告崟鑾峰嚱鏁幫紝榪欑琛屼負涓昏鍦ㄤ互涓嬩笁縐嶆儏鍐靛嚭鐜般?/p>

錛?錛?nbsp;      璋冪敤abort鍑芥暟錛屽茍涓旇緗簡_CALL_REPORTFAULT閫夐」錛堣繖涓夐」鍦≧elease鐗堟湰鏄粯璁よ緗殑錛夈?/p>

錛?錛?nbsp;      鍚敤浜嗚繍琛屾椂瀹夊叏媯鏌ラ夐」錛屽茍涓斿湪杞歡榪愯鏃舵鏌ュ嚭瀹夊叏鎬ч敊璇紝渚嬪鍑虹幇緙撳瓨婧㈠嚭銆傦紙瀹夊叏媯鏌ラ夐」/GS 榛樿涔熸槸鎵撳紑鐨勶級

錛?錛?nbsp;      閬囧埌_invalid_parameter閿欒錛岃屽簲鐢ㄧ▼搴忓張娌℃湁涓誨姩璋冪敤

_set_invalid_parameter_handler璁劇疆閿欒鎹曡幏鍑芥暟銆?/p>

鎵浠ョ粨璁烘槸錛屼嬌鐢╒S2005錛圴C8錛夌紪璇戠殑紼嬪簭錛岃澶氶敊璇兘涓嶈兘鍦⊿etUnhandledExceptionFilter鎹曡幏鍒般傝繖鏄疌RT鐩稿浜庡墠闈㈢増鏈殑涓涓瘮杈冨ぇ鐨勬敼鍙橈紝浣嗘槸寰堥仐鎲撅紝Microsoft鍗存病鏈夊湪鐩稿簲鐨勬枃妗f槑紜寚鍑恒?/p>

瑙e喅鏂規硶

       涔嬫墍浠ュ簲鐢ㄧ▼搴忔崟鑾蜂笉鍒伴偅浜涘紓甯革紝鍘熷洜鏄洜涓烘柊鐗堟湰鐨凜RT瀹炵幇鍦ㄥ紓甯稿鐞嗕腑寮哄埗鍒犻櫎鎵鏈夊簲鐢ㄧ▼搴忓厛鍓嶈緗殑鎹曡幏鍑芥暟錛屽涓嬫墍紺猴細

 /* Make sure any filter already in place is deleted. */

 SetUnhandledExceptionFilter(NULL);

 UnhandledExceptionFilter(&ExceptionPointers);

瑙e喅鏂規硶鏄嫤鎴狢RT璋冪敤SetUnhandledExceptionFilter鍑芥暟錛屼嬌涔嬫棤鏁堛傚湪X86騫沖彴涓嬶紝鍙互浣跨敤浠ヤ笅浠g爜銆?/p>

#ifndef _M_IX86

       #error "The following code only works for x86!"

#endif

 

void DisableSetUnhandledExceptionFilter()

{

    void *addr = (void*)GetProcAddress(LoadLibrary(_T("kernel32.dll")),

                                                         "SetUnhandledExceptionFilter");

    if (addr)

    {

              unsigned char code[16];

              int size = 0;

              code[size++] = 0x33;

              code[size++] = 0xC0;

              code[size++] = 0xC2;

              code[size++] = 0x04;

              code[size++] = 0x00;

 

               DWORD dwOldFlag, dwTempFlag;

              VirtualProtect(addr, size, PAGE_READWRITE, &dwOldFlag);

              WriteProcessMemory(GetCurrentProcess(), addr, code, size, NULL);

              VirtualProtect(addr, size, dwOldFlag, &dwTempFlag);

       }

}

鍦ㄨ緗嚜宸辯殑寮傚父澶勭悊鍑芥暟鍚庯紝璋冪敤DisableSetUnhandledExceptionFilter紱佹CRT璁劇疆鍗沖彲銆?/p>

鍏跺畠璁ㄨ

       涓婇潰閫氳繃璁劇疆api hook錛岃В鍐充簡鍦╒S2005涓婄殑寮傚父鎹曡幏闂錛岃繖縐嶈櫧鐒朵笉鏄偅涔?#8220;騫插噣”鐨勮В鍐蟲柟妗堬紝紜槸鐩墠鍞竴綆鍗曟湁鏁堢殑鏂瑰紡銆?/p>

       铏界劧涔熷彲浠ラ氳繃_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT), signal(SIGABRT, ...), 鍜宊set_invalid_parameter_handler(...) 瑙e喅錛?錛夛紙3錛夛紝浣嗘槸瀵逛簬錛?錛夛紝璁劇疆api hook鏄敮涓鐨勬柟寮忋?/p>

娉細瀵逛簬閿欒鏄惁鏄劇ず閿欒鎻愮ず妗嗭紝鍙互浣跨敤SetErrorMode錛堬級


鍚庨潰鍙堥亣鍒癢IN8.1涓?/strong>
VirtualProtect鎶ラ敊C0000005錛屾渶鍚庤繕鏄兂鍔炴硶瑙e喅浜?/span>

bool AdjustPrivileges() 
{     
    HANDLE hToken;     
    TOKEN_PRIVILEGES tp;     
    TOKEN_PRIVILEGES oldtp;     
    DWORD dwSize=sizeof(TOKEN_PRIVILEGES);     
    LUID luid;       
    if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) 
    {         
        if (GetLastError()==ERROR_CALL_NOT_IMPLEMENTED) return true;         
        else return false;     
    }     

    if (!LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &luid)) 
    {        
        CloseHandle(hToken);         
        return false;     
    }     
    
    ZeroMemory(&tp, sizeof(tp));     
    tp.PrivilegeCount=1;     
    tp.Privileges[0].Luid=luid;     
    tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;     
    /* Adjust Token Privileges */    
    if (!AdjustTokenPrivileges(hToken, FALSE, &tp, sizeof(TOKEN_PRIVILEGES), &oldtp, &dwSize)) 
    {        
        CloseHandle(hToken);         
        return false;     
    }     
    
    // close handles     
    CloseHandle(hToken);     
    return true



void DisableSetUnhandledExceptionFilter()

{

    void *addr = (void*)GetProcAddress(LoadLibrary(_T("kernel32.dll")),

        "SetUnhandledExceptionFilter");

    if (addr)

    {

        unsigned char code[16];

        int size = 0;

        code[size++] = 0x33;

        code[size++] = 0xC0;

        code[size++] = 0xC2;

        code[size++] = 0x04;

        code[size++] = 0x00;

        //SetProcessDEPPolicy(1);

        DWORD dwOldFlag, dwTempFlag;

        // win8.1涓嬬敤鐧懼害鎵句簡涓婸AGE_READWRITE宕╂簝錛屽疄闄呮祴璇曟彁鍗嘾ebug鏉冮檺錛孲etProcessDEPPolicy(1);閮芥棤鏁堬紝鏀規垚PAGE_EXECUTE_READWRITE鐢熸晥
        
//VirtualProtect(addr, size, PAGE_READWRITE, &dwOldFlag);
        VirtualProtect(addr, size, PAGE_EXECUTE_READWRITE, &dwOldFlag);
        WriteProcessMemory(GetCurrentProcess(), addr, code, size, NULL);

        VirtualProtect(addr, size, dwOldFlag, &dwTempFlag);

    }

}





Enic 2015-08-28 11:14 鍙戣〃璇勮
]]>
TCP涔嬮夐」TCP_KETEPALIVEhttp://www.shnenglu.com/Error/archive/2015/07/22/211342.htmlEnicEnicWed, 22 Jul 2015 09:48:00 GMThttp://www.shnenglu.com/Error/archive/2015/07/22/211342.htmlhttp://www.shnenglu.com/Error/comments/211342.htmlhttp://www.shnenglu.com/Error/archive/2015/07/22/211342.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/211342.htmlhttp://www.shnenglu.com/Error/services/trackbacks/211342.htmlTCP涔嬮夐」TCP_KETEPALIVE
 
KEEPALIVE鏈哄埗錛屾槸TCP鍗忚瑙勫畾鐨凾CP灞傦紙闈炲簲鐢ㄥ眰涓氬姟浠g爜瀹炵幇鐨勶級媯嫻婽CP鏈鍒板鏂逛富鏈虹殑TCP榪炴帴鐨勮繛閫氭х殑琛屼負銆傞伩鍏嶆湇鍔″櫒鍦ㄥ鎴風鍑虹幇鍚勭涓嶈壇鐘跺喌鏃舵棤娉曟劅鐭ワ紝鑰屾案榪滅瓑鍦ㄨ繖鏉CP榪炴帴涓娿?/div>
 
璇ラ夐」鍙互璁劇疆榪欎釜媯嫻嬭涓虹殑緇嗚妭錛屽涓嬩唬鐮佹墍紺猴細
int keepAlive = 1;    // 闈?鍊鹼紝寮鍚痥eepalive灞炴?/div>
int keepIdle = 60;    // 濡傝榪炴帴鍦?0縐掑唴娌℃湁浠諱綍鏁版嵁寰鏉?鍒欒繘琛屾TCP灞傜殑鎺㈡祴
int keepInterval = 5; // 鎺㈡祴鍙戝寘闂撮殧涓?縐?/div>
int keepCount = 3;        // 灝濊瘯鎺㈡祴鐨勬鏁?濡傛灉絎?嬈℃帰嫻嬪寘灝辨敹鍒板搷搴斾簡,鍒欏悗2嬈$殑涓嶅啀鍙?/div>
setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&keepAlive, sizeof(keepAlive));
setsockopt(sockfd, SOL_TCP, TCP_KEEPIDLE, (void*)&keepIdle, sizeof(keepIdle));
setsockopt(sockfd, SOL_TCP, TCP_KEEPINTVL, (void *)&keepInterval, sizeof(keepInterval));
setsockopt(sockfd, SOL_TCP, TCP_KEEPCNT, (void *)&keepCount, sizeof(keepCount));
 
璁劇疆璇ラ夐」鍚庯紝濡傛灉60縐掑唴鍦ㄦ濂楁帴鍙f墍瀵瑰簲榪炴帴鐨勪換涓鏂瑰悜閮芥病鏈夋暟鎹氦鎹紝TCP灞傚氨鑷姩緇欏鏂瑰彂涓涓繚媧繪帰嫻嬪垎鑺?keepalive probe)銆傝繖鏄竴涓鏂瑰繀欏誨搷搴旂殑TCP鍒嗚妭銆傚畠浼氬鑷翠互涓嬩笁縐嶆儏鍐碉細
    瀵規柟鎺ユ敹涓鍒囨甯革細浠ユ湡鏈涚殑ACK鍝嶅簲銆?0縐掑悗錛孴CP灝嗛噸鏂板紑濮嬩笅涓杞帰嫻嬨?/div>
    瀵規柟宸插穿婧冧笖宸查噸鏂板惎鍔細浠ST鍝嶅簲銆傚鎺ュ彛鐨勫緟澶勭悊閿欒琚疆涓篍CONNRESET銆?/div>
    瀵規柟鏃犱換浣曞搷搴旓細姣斿瀹㈡埛绔偅杈瑰凡緇忔柇緗戯紝鎴栬呭鎴風鐩存帴姝繪満銆備互璁懼畾鐨勬椂闂撮棿闅斿皾璇?嬈★紝鏃犲搷搴斿氨鏀懼純銆傚鎺ュ彛鐨勫緟澶勭悊閿欒琚疆涓篍TIMEOUT銆?/div>
 
鍏ㄥ眬璁劇疆鍙洿鏀?etc/sysctl.conf,鍔犱笂:
net.ipv4.tcp_keepalive_intvl = 5
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_time = 60
 
鍦ㄧ▼搴忎腑琛ㄧ幇涓猴細
闃誨妯″瀷涓嬶紝褰揟CP灞傛嫻嬪埌瀵圭socket涓嶅啀鍙敤鏃訛紝鍐呮牳鏃犳硶涓誨姩閫氱煡搴旂敤灞傚嚭閿欙紝鍙湁搴旂敤灞備富鍔ㄨ皟鐢╮ead()鎴栬厀rite()榪欐牱鐨処O緋葷粺璋冪敤鏃訛紝鍐呮牳鎵嶄細鍒╃敤鍑洪敊鏉ラ氱煡搴旂敤灞傘?/div>
闈為樆濉炴ā鍨嬩笅錛宻elect鎴栬卐poll浼氳繑鍥瀞ockfd鍙,搴旂敤灞傚鍏惰繘琛岃鍙栨椂錛宺ead()浼氭姤閿欍?/div>
 
涓鐐圭粡楠岋細
瀹為檯涓婃垜浠湪鍋氭湇鍔″櫒紼嬪簭鐨勬椂鍊欙紝瀵瑰鎴風鐨勪繚媧繪帰嫻嬪熀鏈笂涓嶄緷璧栦簬榪欎釜TCP灞傜殑keepalive鎺㈡祴鏈哄埗銆?/div>
鑰屾槸鎴戜滑鑷繁鍋氫竴濂楀簲鐢ㄥ眰鐨勮姹傚簲絳旀秷鎭紝鍦ㄥ簲鐢ㄥ眰瀹炵幇榪欐牱涓涓姛鑳姐?br />


鍦╓indow涓婇亣鍒拌繖涓棶棰橈紝鏈鍚庡彂鐜拌矊浼煎彧鏀寔錛?span style="white-space: pre;">
               // 璁劇疆KEEPALIVE (寮鍚嫻?
int optval = 1;
setsockopt(m_hSocket, SOL_SOCKET, SO_KEEPALIVE, (char *) &optval, sizeof(optval));


鐒跺悗瀹為檯鏂紑鏄湪涓誨姩Recv鎴栬匰end璋冪敤鍚庢墠瑙﹀彂鐨?/div>

Enic 2015-07-22 17:48 鍙戣〃璇勮
]]>UI寮鍙戜粖澶╁浜嗕袱嬈℃柊璇嶏細IMGUI RMGUIhttp://www.shnenglu.com/Error/archive/2015/06/25/211039.htmlEnicEnicThu, 25 Jun 2015 05:49:00 GMThttp://www.shnenglu.com/Error/archive/2015/06/25/211039.htmlhttp://www.shnenglu.com/Error/comments/211039.htmlhttp://www.shnenglu.com/Error/archive/2015/06/25/211039.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/211039.htmlhttp://www.shnenglu.com/Error/services/trackbacks/211039.html澶х鐨勮В閲婏細

Immediate Mode GUI (IMGUI)銆傝繖縐嶇被鍨嬬殑鏇村鐨勯傜敤浜庢樉紺哄尯鍩熷疄鏃跺埛鏂扮殑紼嬪簭閲岄潰錛屼緥濡傛父鎴忓拰CAD絳夈?br />Retained Mode GUI (RMGUI)


鐢ㄤ竴涓紶緇烺MGUI搴撶殑鏃跺欙紝鐢ㄦ埛寰寰闇瑕佹樉寮忕殑鍒濆鍖栨瘡涓涓帶浠跺璞°傛瘡涓帶浠墮兘鏄瓨鍦ㄥ唴瀛樹腑鐨勫疄浣擄紝騫朵笖姣忎釜鎺т歡閮介渶瑕佽嚜宸變繚瀛樹竴閮ㄥ垎鏁版嵁錛堜緥濡備竴涓猻lider闇瑕佷繚瀛樹竴涓暟鍊鹼紝Button瑕佷繚瀛樹竴涓洖璋冧簨浠剁瓑錛夛紝鐢ㄦ埛榪橀渶瑕佸湪涓涓洖璋冨嚱鏁伴噷灝嗘帶浠墮噷鐨勬暟鎹嫹璐濆洖紼嬪簭鏈韓涓紙MVC妯″紡錛夈?/span>

IMGUI妯″紡鍦ㄤ嬌鐢ㄤ笂浼氭洿綆鍗曠矖鏆翠竴浜涖傛帶浠舵病鏈夎嚜宸辯殑瀵硅薄錛屼笉淇濆瓨浠諱綍鐘舵侊紝涓嶇敤鍗曠嫭鐨勫幓瀹炵幇UI鍜岀▼搴忛棿鏁版嵁鐨勪氦鎹紝鐢氳嚦閮戒笉闇瑕佸崟鐙負浜嬩歡鍐欏洖璋冨嚱鏁般傛瘡涓帶浠跺氨鏄竴涓嚱鏁幫紝鐩存帴鍦ㄧ▼搴忕殑Draw()鍑芥暟閲岃鍝釜鎺т歡灝辮皟鐢ㄥ摢涓嚱鏁板氨濂戒簡銆?br />




Enic 2015-06-25 13:49 鍙戣〃璇勮
]]>
WIN8 OEM鐗堟湰娌℃湁鎵懼埌緇勭瓥鐣ョ紪杈戝櫒錛岃緗粯璁や嬌鐢ㄧ鐞嗗憳鏉冮檺鍚姩VS錛屽厤寰楁瘡嬈¢兘瑕佹彁紺洪噸鍚疺S鎵嶈兘璋冭瘯紼嬪簭http://www.shnenglu.com/Error/archive/2015/06/20/210998.htmlEnicEnicSat, 20 Jun 2015 05:03:00 GMThttp://www.shnenglu.com/Error/archive/2015/06/20/210998.htmlhttp://www.shnenglu.com/Error/comments/210998.htmlhttp://www.shnenglu.com/Error/archive/2015/06/20/210998.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/210998.htmlhttp://www.shnenglu.com/Error/services/trackbacks/210998.htmlreg add "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "c:\windows\system32\cmd.exe" /d "RUNASADMIN" /f


Enic 2015-06-20 13:03 鍙戣〃璇勮
]]>coco2d鐨刼bj鍐呭瓨綆$悊錛?/title><link>http://www.shnenglu.com/Error/archive/2015/06/06/210845.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Sat, 06 Jun 2015 13:28:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/06/06/210845.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210845.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/06/06/210845.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210845.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210845.html</trackback:ping><description><![CDATA[鐞嗚В涓変釜鍑芥暟錛歳elease  retain  autorelease<br />瀵瑰簲鐨勬湁涓や釜璁℃暟鍣細ref  autoref<br />autorelease鏄鎵榩ool綆$悊鍣ㄥ湪鏌愪釜鏃跺欐墽琛宺elease<br /><br />璇濊cocos榛樿鐨刢reate鏂規硶浼氬垱寤哄畬鎴愪互鍚庣珛鍒匯侀┈涓婃墽琛屼竴嬈utorelease錛岃涓烘湁鐐硅寮傦紝鑰屼笖new鍑烘潵鍙湁ref鍊兼槸1<br />浣滀負瑙勮寖錛宑reate浠ュ悗搴旇椹笂autorelease鍜宨nit鍚﹀垯鍧戠埞<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; "> 1</span>  <br /><span style="color: #008080; "> 2</span> template <typename TVal><br /><span style="color: #008080; "> 3</span> xcc::RefPtr<TVal> TMakeRefPtr()<br /><span style="color: #008080; "> 4</span> {<br /><span style="color: #008080; "> 5</span>     TVal* pRefTem = <span style="color: #0000FF; ">new</span> TVal;<br /><span style="color: #008080; "> 6</span>     xcc::RefPtr<TVal> rpTem = pRefTem;<br /><span style="color: #008080; "> 7</span>     rpTem->init();<br /><span style="color: #008080; "> 8</span>     rpTem->autorelease();<br /><span style="color: #008080; "> 9</span> <br /><span style="color: #008080; ">10</span>     <span style="color: #0000FF; ">return</span> rpTem;<br /><span style="color: #008080; ">11</span> }</div><br />欏轟究鏀句竴涓敤浜巆ocos鐨勬櫤鑳芥寚閽堬細<span style="font-size: 13px; color: #008080;"> 1</span><span style="font-size: 13px; background-color: #eeeeee;"> </span><span style="font-size: 13px; color: #008000;">//</span><span style="font-size: 13px; color: #008000;"> cocos2d</span><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #008080; "> 2</span> <span style="color: #008000; "></span>template<typename TCocosRefVal><br /><span style="color: #008080; "> 3</span> <span style="color: #0000FF; ">class</span> RefPtr<br /><span style="color: #008080; "> 4</span> {<br /><span style="color: #008080; "> 5</span> <span style="color: #0000FF; ">public</span>:<br /><span style="color: #008080; "> 6</span>     RefPtr(TCocosRefVal* pRefVal = NULL)<br /><span style="color: #008080; "> 7</span>     {<br /><span style="color: #008080; "> 8</span>         m_pRefVal = pRefVal;<br /><span style="color: #008080; "> 9</span>         __IncRef();<br /><span style="color: #008080; ">10</span>     }<br /><span style="color: #008080; ">11</span> <br /><span style="color: #008080; ">12</span>     RefPtr(<span style="color: #0000FF; ">const</span> RefPtr<TCocosRefVal>& refVal)<br /><span style="color: #008080; ">13</span>     {<br /><span style="color: #008080; ">14</span>         m_pRefVal = pRefVal;<br /><span style="color: #008080; ">15</span>         __IncRef();<br /><span style="color: #008080; ">16</span>     }<br /><span style="color: #008080; ">17</span> <br /><span style="color: #008080; ">18</span>     RefPtr(RefPtr<TCocosRefVal>&& refVal)<br /><span style="color: #008080; ">19</span>     {<br /><span style="color: #008080; ">20</span>         m_pRefVal = refVal.m_pRefVal;<br /><span style="color: #008080; ">21</span> <br /><span style="color: #008080; ">22</span>         refVal.m_pRefVal = NULL;<br /><span style="color: #008080; ">23</span>     }<br /><span style="color: #008080; ">24</span> <br /><span style="color: #008080; ">25</span>     <span style="color: #0000FF; ">virtual</span> ~RefPtr()<br /><span style="color: #008080; ">26</span>     {<br /><span style="color: #008080; ">27</span>         __DecRef();<br /><span style="color: #008080; ">28</span>     }<br /><span style="color: #008080; ">29</span> <br /><span style="color: #008080; ">30</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">const</span> RefPtr& <span style="color: #0000FF; ">operator</span> = (<span style="color: #0000FF; ">const</span> RefPtr<TCocosRefVal>& refVal)<br /><span style="color: #008080; ">31</span>     {<br /><span style="color: #008080; ">32</span>         <span style="color: #0000FF; ">if</span> (m_pRefVal != refVal.m_pRefVal)<br /><span style="color: #008080; ">33</span>         {<br /><span style="color: #008080; ">34</span>             Reset(refVal.m_pRefVal);<br /><span style="color: #008080; ">35</span>         }<br /><span style="color: #008080; ">36</span> <br /><span style="color: #008080; ">37</span>         <span style="color: #0000FF; ">return</span> *<span style="color: #0000FF; ">this</span>;<br /><span style="color: #008080; ">38</span>     }<br /><span style="color: #008080; ">39</span> <br /><span style="color: #008080; ">40</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">void</span> Reset(TCocosRefVal* pRefVal = NULL)<br /><span style="color: #008080; ">41</span>     {<br /><span style="color: #008080; ">42</span>         __DecRef();<br /><span style="color: #008080; ">43</span>         m_pRefVal = pRefVal;<br /><span style="color: #008080; ">44</span>         __IncRef();<br /><span style="color: #008080; ">45</span>     }<br /><span style="color: #008080; ">46</span> <br /><span style="color: #008080; ">47</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">bool</span> <span style="color: #0000FF; ">operator</span> == (<span style="color: #0000FF; ">const</span> RefPtr<TCocosRefVal>& refVal)<br /><span style="color: #008080; ">48</span>     {<br /><span style="color: #008080; ">49</span>         <span style="color: #0000FF; ">return</span> (m_pRefVal != refVal.m_pRefVal);<br /><span style="color: #008080; ">50</span>     }<br /><span style="color: #008080; ">51</span> <br /><span style="color: #008080; ">52</span>     <span style="color: #0000FF; ">virtual</span> TCocosRefVal* Get() <span style="color: #0000FF; ">const</span> <br /><span style="color: #008080; ">53</span>     {<br /><span style="color: #008080; ">54</span>         <span style="color: #0000FF; ">return</span> m_pRefVal;<br /><span style="color: #008080; ">55</span>     }<br /><span style="color: #008080; ">56</span> <br /><span style="color: #008080; ">57</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">operator</span> TCocosRefVal*() <span style="color: #0000FF; ">const</span><br /><span style="color: #008080; ">58</span>     {<br /><span style="color: #008080; ">59</span>         <span style="color: #0000FF; ">return</span> m_pRefVal;<br /><span style="color: #008080; ">60</span>     }<br /><span style="color: #008080; ">61</span> <br /><span style="color: #008080; ">62</span>     <span style="color: #0000FF; ">virtual</span> TCocosRefVal* <span style="color: #0000FF; ">operator</span> -> () <span style="color: #0000FF; ">const</span><br /><span style="color: #008080; ">63</span>     {<br /><span style="color: #008080; ">64</span>         <span style="color: #0000FF; ">return</span> m_pRefVal;<br /><span style="color: #008080; ">65</span>     }<br /><span style="color: #008080; ">66</span> <br /><span style="color: #008080; ">67</span>     <span style="color: #0000FF; ">virtual</span> TCocosRefVal& <span style="color: #0000FF; ">operator</span> * () <span style="color: #0000FF; ">const</span><br /><span style="color: #008080; ">68</span>     {<br /><span style="color: #008080; ">69</span>         <span style="color: #0000FF; ">return</span> *m_pRefVal;<br /><span style="color: #008080; ">70</span>     }<br /><span style="color: #008080; ">71</span> <br /><span style="color: #008080; ">72</span> <span style="color: #0000FF; ">protected</span>:<br /><span style="color: #008080; ">73</span>     <span style="color: #0000FF; ">void</span> __IncRef()<br /><span style="color: #008080; ">74</span>     {<br /><span style="color: #008080; ">75</span>         <span style="color: #0000FF; ">if</span> (NULL != m_pRefVal)<br /><span style="color: #008080; ">76</span>         {<br /><span style="color: #008080; ">77</span>             m_pRefVal->retain();<br /><span style="color: #008080; ">78</span>         }<br /><span style="color: #008080; ">79</span>     }<br /><span style="color: #008080; ">80</span> <br /><span style="color: #008080; ">81</span>     <span style="color: #0000FF; ">void</span> __DecRef()<br /><span style="color: #008080; ">82</span>     {<br /><span style="color: #008080; ">83</span>         <span style="color: #0000FF; ">if</span> (NULL != m_pRefVal)<br /><span style="color: #008080; ">84</span>         {<br /><span style="color: #008080; ">85</span>             CCAssert(m_pRefVal->retainCount() >= 1, "");<br /><span style="color: #008080; ">86</span>             m_pRefVal->release();<br /><span style="color: #008080; ">87</span>         }<br /><span style="color: #008080; ">88</span>     }<br /><span style="color: #008080; ">89</span> <br /><span style="color: #008080; ">90</span> <span style="color: #0000FF; ">private</span>:<br /><span style="color: #008080; ">91</span>     TCocosRefVal* m_pRefVal;<br /><span style="color: #008080; ">92</span> };</div><img src ="http://www.shnenglu.com/Error/aggbug/210845.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-06-06 21:28 <a href="http://www.shnenglu.com/Error/archive/2015/06/06/210845.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>GetModuleHandle鑾峰彇鍒扮殑鍙ユ焺鏄笉鐢╟losehandle鐨?/title><link>http://www.shnenglu.com/Error/archive/2015/06/06/210844.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Sat, 06 Jun 2015 12:58:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/06/06/210844.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210844.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/06/06/210844.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210844.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210844.html</trackback:ping><description><![CDATA[<div>void FixWorkingDir()</div><div>{</div><div><span style="white-space:pre"> </span>HANDLE hCurrentExe = ::GetModuleHandle(NULL);</div><div></div><div><span style="white-space:pre"> </span>std::tstring strFileName;</div><div><span style="white-space:pre"> </span>std::tstring strPath;</div><div><span style="white-space:pre"> </span>strFileName.resize(MAX_PATH*2, 0);</div><div><span style="white-space:pre"> </span>::GetModuleFileName((HMODULE)hCurrentExe, const_cast<TCHAR*>(strFileName.data()), strFileName.size());</div><div></div><div><span style="white-space:pre"> </span>auto nPosEnd = strFileName.find_last_of(_T('\\'));</div><div><span style="white-space:pre"> </span>if (std::tstring::npos != nPosEnd)</div><div><span style="white-space:pre"> </span>{</div><div><span style="white-space:pre"> </span>strPath = strFileName.substr(0, nPosEnd);</div><div><span style="white-space:pre"> </span>::SetCurrentDirectory(strPath.c_str());</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span>else</div><div><span style="white-space:pre"> </span>{</div><div><span style="white-space:pre"> </span>XASSERT_MSG(false, _T("windows did not have root path, \\ must be found"));</div><div><span style="white-space:pre"> </span>}</div><div><span style="white-space:pre"> </span></div><div>}</div><img src ="http://www.shnenglu.com/Error/aggbug/210844.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-06-06 20:58 <a href="http://www.shnenglu.com/Error/archive/2015/06/06/210844.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>浠庣粨鏋滈泦鍒涘緩涓存椂琛紝瀛樺偍榪囩▼涓璼elect鍏朵粬瀛樺偍榪囩▼鐨剆elect榪斿洖http://www.shnenglu.com/Error/archive/2015/05/26/210747.htmlEnicEnicTue, 26 May 2015 03:37:00 GMThttp://www.shnenglu.com/Error/archive/2015/05/26/210747.htmlhttp://www.shnenglu.com/Error/comments/210747.htmlhttp://www.shnenglu.com/Error/archive/2015/05/26/210747.html#Feedback0http://www.shnenglu.com/Error/comments/commentRss/210747.htmlhttp://www.shnenglu.com/Error/services/trackbacks/210747.html鍦╯qlserver 涓嬫兂澶嶅埗涓寮犺〃鐨勶紝鎯沖埌oracle涓嬬洿鎺reate table xxx as select * from ....鍗沖彲銆?/span>
浣嗘槸緇撴灉鍗存槸閿欒鐨勶紝baidu涓涓嬪彂鐜般?/span>
sqlserver鐨勮娉曟槸 : select * into tablenew from tableold



CREATE TABLE #TemTable AS SELECT * FROM PlatformCoinExchangeRecord;
SELECT * INTO #TemTable FROM PlatformCoinExchangeRecord;
SELECT * FROM #TemTable;
DROP TABLE #TemTable;


CREATE TABLE #TemTable 
(TotalOnlineDuration bigint, 
ByPlayDuration int, 
TotalPlayTimes int, 
Task30 int, 
Task60 int, 
Task120 int);
INSERT INTO #TemTable exec NET_PW_GetPlayDurationTask 539;
SELECT * from #TemTable;
DROP TABLE #TemTable;
涓存椂琛ㄥ彲鑳藉垱寤哄悗鍙兘搴斾負鍏朵粬鍘熷洜瀵艱嚧娌℃湁鎵ц鍒癲rop錛岃繖鏍蜂笅嬈℃墽琛岀殑鏃跺欎復鏃惰〃榪樺瓨鍦紝鎵浠ュ垱寤轟復鏃惰〃浠ュ悗鏈濂戒細鏄仛寮傚父澶勭悊鍦╟atch涓己鍒墮攢姣併?br />CONTINUE HANDLE mysql鍙互鐢ㄨ繖涓笢瑗?br />

 CREATE TEMPORARY table IF NOT EXISTS alarmLeveltb
 (    devID bigint not null,
      alarmLevel bigint not null
 );

truncate TABLE alarmLeveltb;--娓呯┖琛ㄤ腑鐨勬暟鎹?/p>濡傛灉涓嶅瓨鍦ㄦ煇涓〃灝卞垱寤猴紝mysql鍐欐硶

IF objectproperty(object_id(@DbTableFileName),'IsUserTable') IS NOT NULL
   PRINT 'EXISTS '
ELSE
   PRINT 'NOT EXISTS '


璨屼技娌℃湁鎵懼埌鐩存帴鍒涘緩鐨勫姙娉曪紝鎵浠ヨ綰﹀畾濂界粨鏋滈泦


Enic 2015-05-26 11:37 鍙戣〃璇勮
]]>
case when鏄釜濂戒笢瑗?/title><link>http://www.shnenglu.com/Error/archive/2015/05/20/210696.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Wed, 20 May 2015 07:49:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/05/20/210696.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210696.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/05/20/210696.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210696.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210696.html</trackback:ping><description><![CDATA[<div><a style="color: #000000; text-decoration: none; font-family: 'Microsoft YaHei'; font-size: 20px; line-height: 30px; background-color: #ffffff;">鍦ㄥ悓涓涓猻ql璇彞涓啓涓嶅悓鏉′歡鐨凜ount鏁伴噺</a><br />select sum(case when Experience >= 218706 then 1 else 0 end) as '[25,+',</div><div><span style="white-space:pre"> </span>   sum(case when Experience >= 49065 and Experience < 218706 then 1 else 0 end) as '[20,25)',</div><div>       sum(case when Experience >= 11773 and Experience < 49065 then 1 else 0 end) as '[15,20)',</div><div><span style="white-space:pre"> </span>   sum(case when Experience >= 2171 and Experience < 11773 then 1 else 0 end) as '[10,15)'</div><div><span style="white-space:pre"> </span>from QPAccountsDB.dbo.AccountsInfo where IsAndroid = 0;<br /><br /><div>http://blog.csdn.net/wangziling100/article/details/7598873</div><br /></div><img src ="http://www.shnenglu.com/Error/aggbug/210696.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-05-20 15:49 <a href="http://www.shnenglu.com/Error/archive/2015/05/20/210696.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>NOMINMAX寮曡搗鐨剆tl gdi鍐茬獊錛?/title><link>http://www.shnenglu.com/Error/archive/2015/05/18/210680.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Mon, 18 May 2015 03:55:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/05/18/210680.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210680.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/05/18/210680.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210680.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210680.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px; background-color: #ffffff;">If you define NOMINMAX, because you prefer the STL version, then you may get problems while including gdiplus.h, which uses the min/max macro. As solution you need to include the STL headers and use "using namespace std" <strong style="margin: 0px; padding: 0px; border: 0px;">before</strong> you include the gdiplus.h.</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19px; background-color: #ffffff;">In example:</p><pre style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; background-color: #eeeeee; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: #222222;"><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">#define NOMINMAX <br /> // Include C++ headers <br />#include <algorithm> <br />using namespace std; <br /> <br />// Include Windows headers <br />#include <windows.h> <br />#include <gdiplus.h><br /><br />涓嶈兘鐩存帴鍦ㄥ伐紼嬩腑娣誨姞NOMINMAX錛屽繀欏昏繖涔堝鐞嗘墠鑳絆K</code></pre><img src ="http://www.shnenglu.com/Error/aggbug/210680.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-05-18 11:55 <a href="http://www.shnenglu.com/Error/archive/2015/05/18/210680.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>minidump鍚愬嚭鏉ョ殑dump鏂囦歡涓虹┖錛屾枃浠跺ぇ灝忎負0http://www.shnenglu.com/Error/archive/2015/05/15/210655.htmlEnicEnicThu, 14 May 2015 20:55:00 GMThttp://www.shnenglu.com/Error/archive/2015/05/15/210655.htmlhttp://www.shnenglu.com/Error/comments/210655.htmlhttp://www.shnenglu.com/Error/archive/2015/05/15/210655.html#Feedback2http://www.shnenglu.com/Error/comments/commentRss/210655.htmlhttp://www.shnenglu.com/Error/services/trackbacks/210655.html

Enic 2015-05-15 04:55 鍙戣〃璇勮
]]>
Unhandled exceptions 鏃犳硶鎹曡幏鐨勫師鍥犱互鍙婅В鍐蟲柟妗?/title><link>http://www.shnenglu.com/Error/archive/2015/05/15/210654.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Thu, 14 May 2015 18:17:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/05/15/210654.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210654.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/05/15/210654.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210654.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210654.html</trackback:ping><description><![CDATA[<p style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;">// 鏈川涓婃潵璇村氨鏄嚜宸辮緗簡UnhandleExceptionFilter鍚庯紝C榪愯搴撴垨鑰呭叾浠栦粈涔堝埆鐨勫嚱鏁頒篃璋冪敤浜嗭紝鎵浠ヨ嚜宸辮緗殑灝辨棤鏁堜簡錛岃В鍐蟲柟妗堝氨鏄疕OOK SET鍑芥暟錛岃鍒漢鏃犳硶鍙栦唬鑷繁<br /><br />寰堝 C/C++ 紼嬪簭浼氳緗嚜宸辯殑 <a style="text-decoration: none; color: #5353cb;">Unhandled Exception Filter</a> 鐢ㄤ簬鎹曡幏 Unhandled exceptions 騫惰緭鍑轟竴浜涗俊鎭紙渚嬪錛?a style="text-decoration: none; color: #5353cb;">鍒涘緩 mini-dump</a> 鎴栬呰緭鍑鴻皟鐢ㄦ爤鍒版棩蹇楁枃浠朵腑錛夈?/p><p style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;">浠?VC++2005 寮濮嬪嚭浜庡畨鍏ㄥ洜绱犲井杞敼鍙樹簡 CRT 鐨勮涓恒傚湪浠ヤ笅鎯呭喌涓?CRT 涓嶄細閫氱煡琚敞鍐岀殑 Unhandled Exception Filter錛?/p><ol style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;"><li>璋冪敤浜?abort() 騫朵笖<a style="text-decoration: none; color: #5353cb;">璁劇疆 abort 鐨勮涓?/a>涓?_CALL_REPORTFAULT錛圧elease 鐗堟湰榛樿浣跨敤姝よ緗級</li><li><a style="text-decoration: none; color: #5353cb;">Security Checks</a> 澶辮觸鏃訛紝鍏蜂綋鏉ヨ灝辨槸媯鏌ュ埌涓浜涗細寮曞彂瀹夊叏闂鐨勫爢鏍堟孩鍑烘椂涓嶄細閫氱煡琚敞鍐岀殑 Unhandled Exception Filter錛屼細寮曞彂瀹夊叏闂鐨勫爢鏍堟孩鍑哄寘鎷細瑕嗙洊浜嗗嚱鏁扮殑榪斿洖鍊鹼紝瑕嗙洊浜?Exception handler 鐨勫湴鍧錛岃鐩栦簡鏌愪簺綾誨瀷鐨勫弬鏁般傚叧浜庣紪璇戝櫒鐨?Security Checks 鐨勫唴瀹癸紝璇︾粏鍙傝冿細<a style="text-decoration: none; color: #5353cb;">http://msdn.microsoft.com/en-us/library/Aa290051</a>錛堟敞鎰忥紝姝ゆ枃绔犺皥鍒扮殑鏄?Visual Studio .NET 2003錛屽叾涓?nbsp;<a style="text-decoration: none; color: #5353cb;">_set_security_error_handler</a> 鍑芥暟鍦?VC++2005 浠ュ強浠ヤ笂鐗堟湰宸茬粡鏃犳硶浣跨敤錛?/li><li>濡傛灉娌℃湁璋冪敤 <a style="text-decoration: none; color: #5353cb;">_set_invalid_parameter_handler</a> 璁劇疆 Invalid parameter handler 鏃訛紝媯鏌ュ埌浜嗛潪娉曠殑鍙傛暟</li></ol><p style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;">CRT 鏄氳繃浣曠鏂瑰紡浣垮緱鎴戜滑娉ㄥ唽鐨?Unhandled Exception Filter 涓嶈璋冪敤鐨勶紵絳旀鍦?CRT 鐨勪唬鐮佷腑錛?/p><pre prettyprint="" linenums:1="" prettyprinted"="" style="overflow: auto; line-height: 18px; margin-top: 6px; margin-bottom: 6px; padding: 2px 7px; word-wrap: normal; width: 882px; color: #585858;"><ol style="margin: 0px; padding-left: 27px;"><li value="1" style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">/* 浠g爜鏉ユ簮浜?gs_report.c */</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">/* Make sure any filter already in place is deleted. */</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #660066;">SetUnhandledExceptionFilter</span><span style="color: #666600;">(</span><span style="color: #000000;">NULL</span><span style="color: #666600;">);</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #660066;">UnhandledExceptionFilter</span><span style="color: #666600;">(&</span><span style="color: #660066;">ExceptionPointers</span><span style="color: #666600;">);</span></li></ol></pre><p style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;">CRT 閫氳繃璋冪敤 SetUnhandledExceptionFilter 騫朵紶閫掑弬鏁?NULL 鏉ユ竻闄ょ敤鎴鋒敞鍐岀殑 Unhandled Exception Filter銆傚鏋滄湡鏈涚敤鎴鋒敞鍐岀殑 Unhandled Exception Filter 鎬繪槸琚皟鐢ㄩ偅涔堝簲璇ラ伩鍏?CRT 涓浉鍏崇殑娓呯悊浠g爜銆傚仛娉曚箣涓灝辨槸淇敼 CRT 浠g爜騫朵笖緙栬瘧涓洪潤鎬佸簱錛堝井杞殑 VC++ Libraries 寮鍙?Lead Martyn Lovell 鍦?nbsp;<a style="text-decoration: none; color: #5353cb;">https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=101337&SiteID=210</a> 璋堝埌榪囨湁鍏崇殑闂錛夛紝榪欓噷騫朵笉寤鴻浣跨敤姝ゅ仛娉曘傚彟澶栦竴縐嶅仛娉曞垯鏄敼鍙?SetUnhandledExceptionFilter 鐨勮涓猴紝浣垮緱 CRT 瀵?nbsp;SetUnhandledExceptionFilter 鐨勮皟鐢ㄤ笉璧蜂換浣曚綔鐢紙鏇村姞璇︾粏鐨勮榪板彲浠ュ弬鑰冦?a style="text-decoration: none; color: #5353cb;">Windows 鏍稿績緙栫▼</a>銆嬬浉鍏崇珷鑺傦級銆?/p><pre prettyprint="" linenums:1="" prettyprinted"="" style="overflow: auto; line-height: 18px; margin-top: 6px; margin-bottom: 6px; padding: 2px 7px; word-wrap: normal; width: 882px; color: #585858;"><ol style="margin: 0px; padding-left: 27px;"><li value="1" style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">// 鏃犳硶寰楃煡姝や唬鐮佹潵婧愪簬</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">#ifndef</span><span style="color: #000000;"> _M_IX86</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #880000;">#error</span> <span style="color: #008800;">"The following code only works for x86!"</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">#endif</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> </li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #880000;">// 姝ゅ嚱鏁頒竴鏃︽垚鍔熻皟鐢紝涔嬪悗瀵?SetUnhandledExceptionFilter 鐨勮皟鐢ㄥ皢鏃犳晥</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000088;">void</span> <span style="color: #660066;">DisableSetUnhandledExceptionFilter</span><span style="color: #666600;">()</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #666600;">{</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #000088;">void</span><span style="color: #666600;">*</span><span style="color: #000000;"> addr </span><span style="color: #666600;">=</span> <span style="color: #666600;">(</span><span style="color: #000088;">void</span><span style="color: #666600;">*)</span><span style="color: #660066;">GetProcAddress</span><span style="color: #666600;">(</span><span style="color: #660066;">LoadLibrary</span><span style="color: #666600;">(</span><span style="color: #008800;">"kernel32.dll"</span><span style="color: #666600;">),</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> </span><span style="color: #008800;">"SetUnhandledExceptionFilter"</span><span style="color: #666600;">);</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> </li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #000088;">if</span> <span style="color: #666600;">(</span><span style="color: #000000;">addr</span><span style="color: #666600;">)</span> </li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #666600;">{</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #000088;">unsigned</span> <span style="color: #000088;">char</span><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #006666;">16</span><span style="color: #666600;">];</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #000088;">int</span><span style="color: #000000;"> size </span><span style="color: #666600;">=</span> <span style="color: #006666;">0</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> </li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #000000;">size</span><span style="color: #666600;">++]</span> <span style="color: #666600;">=</span> <span style="color: #006666;">0x33</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #000000;">size</span><span style="color: #666600;">++]</span> <span style="color: #666600;">=</span> <span style="color: #006666;">0xC0</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #000000;">size</span><span style="color: #666600;">++]</span> <span style="color: #666600;">=</span> <span style="color: #006666;">0xC2</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #000000;">size</span><span style="color: #666600;">++]</span> <span style="color: #666600;">=</span> <span style="color: #006666;">0x04</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> code</span><span style="color: #666600;">[</span><span style="color: #000000;">size</span><span style="color: #666600;">++]</span> <span style="color: #666600;">=</span> <span style="color: #006666;">0x00</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> </li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #000000;"> DWORD dwOldFlag</span><span style="color: #666600;">,</span><span style="color: #000000;"> dwTempFlag</span><span style="color: #666600;">;</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #660066;">VirtualProtect</span><span style="color: #666600;">(</span><span style="color: #000000;">addr</span><span style="color: #666600;">,</span><span style="color: #000000;"> size</span><span style="color: #666600;">,</span><span style="color: #000000;"> PAGE_READWRITE</span><span style="color: #666600;">,</span> <span style="color: #666600;">&</span><span style="color: #000000;">dwOldFlag</span><span style="color: #666600;">);</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #660066;">WriteProcessMemory</span><span style="color: #666600;">(</span><span style="color: #660066;">GetCurrentProcess</span><span style="color: #666600;">(),</span><span style="color: #000000;"> addr</span><span style="color: #666600;">,</span><span style="color: #000000;"> code</span><span style="color: #666600;">,</span><span style="color: #000000;"> size</span><span style="color: #666600;">,</span><span style="color: #000000;"> NULL</span><span style="color: #666600;">);</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #660066;">VirtualProtect</span><span style="color: #666600;">(</span><span style="color: #000000;">addr</span><span style="color: #666600;">,</span><span style="color: #000000;"> size</span><span style="color: #666600;">,</span><span style="color: #000000;"> dwOldFlag</span><span style="color: #666600;">,</span> <span style="color: #666600;">&</span><span style="color: #000000;">dwTempFlag</span><span style="color: #666600;">);</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"> <span style="color: #666600;">}</span></li><li style="line-height: 16px; margin: 0px; padding: 0px 0px 0px 8px; list-style: decimal; border-left-width: 3px; border-left-style: solid; border-left-color: #58cc58;"><span style="color: #666600;">}</span></li></ol></pre><p style="color: #585858; font-family: Verdana, 'Lucida Grande', Geneva, Arial, sans-serif; line-height: 22.399999618530273px;">鍙渶瑕佸湪娉ㄥ唽 Unhandled Exception Filter 涔嬪悗璋冪敤 DisableSetUnhandledExceptionFilter() 鍑芥暟錛岄偅涔堜箣鍚庢墍鏈夊 SetUnhandledExceptionFilter 鐨勮皟鐢ㄩ兘灝嗘棤鏁堬紝鑷劧 CRT 涔熸棤娉曢氳繃璋冪敤 SetUnhandledExceptionFilter 鏉ユ竻闄ょ敤鎴鋒敞鍐岀殑 Unhandled Exception Filter銆?/p><img src ="http://www.shnenglu.com/Error/aggbug/210654.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-05-15 02:17 <a href="http://www.shnenglu.com/Error/archive/2015/05/15/210654.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SOUI鐨勬櫤鑳芥寚閽堣祻鏋?/title><link>http://www.shnenglu.com/Error/archive/2015/05/14/210647.html</link><dc:creator>Enic</dc:creator><author>Enic</author><pubDate>Thu, 14 May 2015 02:07:00 GMT</pubDate><guid>http://www.shnenglu.com/Error/archive/2015/05/14/210647.html</guid><wfw:comment>http://www.shnenglu.com/Error/comments/210647.html</wfw:comment><comments>http://www.shnenglu.com/Error/archive/2015/05/14/210647.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/Error/comments/commentRss/210647.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/Error/services/trackbacks/210647.html</trackback:ping><description><![CDATA[<div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080;">涔嬪墠鑷繁璁捐Ref綾誨瀷閬囧埌new鍑烘潵鐨勫湴鍧錛屽拰Ref鐨則his鎸囬拡涓鑷寸殑鎯呭喌錛宻oui鐨勮繖濂楀仛娉曚竴瀹氱▼搴﹂伩鍏嶄簡<br />濡傛灉鏈夋櫘閫氱殑鍗曟牴緇ф壙鐩存帴浣跨敤: public </span>TObjRefImpl<IRef><br />濡傛灉鏄鏍圭戶鎵垮彲浠ユ寚瀹氭瀽鏋勭被鍨?錛?span style="color: #008080;">public </span>TObjRefImpl2<TDeleteType><br />浣嗘槸澶氶噸緇ф壙涓や釜Ref綾昏繕鏄病鏈夎В鍐籌紝鍘熷垯涓婂簲璇ュ姴閲忎笉鍐嶉潪鎺ュ彛鏄笂浣跨敤澶氶噸緇ф壙<br /><span style="color: #008080;"><br /><br />  1</span> template<<span style="color: #0000FF; ">class</span> T><br /><span style="color: #008080; ">  2</span> <span style="color: #0000FF; ">class</span> TObjRefImpl :  <span style="color: #0000FF; ">public</span> T<br /><span style="color: #008080; ">  3</span> {<br /><span style="color: #008080; ">  4</span> <span style="color: #0000FF; ">public</span>:<br /><span style="color: #008080; ">  5</span>     TObjRefImpl():m_cRef(1)<br /><span style="color: #008080; ">  6</span>     {<br /><span style="color: #008080; ">  7</span>     }<br /><span style="color: #008080; ">  8</span> <br /><span style="color: #008080; ">  9</span>     <span style="color: #0000FF; ">virtual</span> ~TObjRefImpl(){<br /><span style="color: #008080; "> 10</span>     }<br /><span style="color: #008080; "> 11</span> <br /><span style="color: #008080; "> 12</span>     <span style="color: #008000; ">//</span><span style="color: #008000; ">!娣誨姞寮曠敤</span><span style="color: #008000; "><br /></span><span style="color: #008080; "> 13</span> <span style="color: #008000; "></span>    <span style="color: #008000; ">/*</span><span style="color: #008000; ">!<br /></span><span style="color: #008080; "> 14</span> <span style="color: #008000; ">    </span><span style="color: #008000; ">*/</span><br /><span style="color: #008080; "> 15</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">long</span> AddRef()<br /><span style="color: #008080; "> 16</span>     {<br /><span style="color: #008080; "> 17</span>         <span style="color: #0000FF; ">return</span> InterlockedIncrement(&m_cRef);<br /><span style="color: #008080; "> 18</span>     }<br /><span style="color: #008080; "> 19</span> <br /><span style="color: #008080; "> 20</span>     <span style="color: #008000; ">//</span><span style="color: #008000; ">!閲婃斁寮曠敤</span><span style="color: #008000; "><br /></span><span style="color: #008080; "> 21</span> <span style="color: #008000; "></span>    <span style="color: #008000; ">/*</span><span style="color: #008000; ">!<br /></span><span style="color: #008080; "> 22</span> <span style="color: #008000; ">    </span><span style="color: #008000; ">*/</span><br /><span style="color: #008080; "> 23</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">long</span> Release()<br /><span style="color: #008080; "> 24</span>     {<br /><span style="color: #008080; "> 25</span>         <span style="color: #0000FF; ">long</span> lRet = InterlockedDecrement(&m_cRef);<br /><span style="color: #008080; "> 26</span>         <span style="color: #0000FF; ">if</span>(lRet==0)<br /><span style="color: #008080; "> 27</span>         {<br /><span style="color: #008080; "> 28</span>             OnFinalRelease();<br /><span style="color: #008080; "> 29</span>         }<br /><span style="color: #008080; "> 30</span>         <span style="color: #0000FF; ">return</span> lRet;<br /><span style="color: #008080; "> 31</span>     }<br /><span style="color: #008080; "> 32</span> <br /><span style="color: #008080; "> 33</span>     <span style="color: #008000; ">//</span><span style="color: #008000; ">!閲婃斁瀵硅薄</span><span style="color: #008000; "><br /></span><span style="color: #008080; "> 34</span> <span style="color: #008000; "></span>    <span style="color: #008000; ">/*</span><span style="color: #008000; ">!<br /></span><span style="color: #008080; "> 35</span> <span style="color: #008000; ">    </span><span style="color: #008000; ">*/</span><br /><span style="color: #008080; "> 36</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">void</span> OnFinalRelease()<br /><span style="color: #008080; "> 37</span>     {<br /><span style="color: #008080; "> 38</span>         delete <span style="color: #0000FF; ">this</span>;<br /><span style="color: #008080; "> 39</span>     }<br /><span style="color: #008080; "> 40</span> <span style="color: #0000FF; ">protected</span>:<br /><span style="color: #008080; "> 41</span>     <span style="color: #0000FF; ">volatile</span> LONG m_cRef;<br /><span style="color: #008080; "> 42</span> };<br /><span style="color: #008080; "> 43</span> <br /><span style="color: #008080; "> 44</span> template<<span style="color: #0000FF; ">class</span> T,<span style="color: #0000FF; ">class</span> T2><br /><span style="color: #008080; "> 45</span> <span style="color: #0000FF; ">class</span> TObjRefImpl2 :  <span style="color: #0000FF; ">public</span> TObjRefImpl<T><br /><span style="color: #008080; "> 46</span> {<br /><span style="color: #008080; "> 47</span> <span style="color: #0000FF; ">public</span>:<br /><span style="color: #008080; "> 48</span>     <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">void</span> OnFinalRelease()<br /><span style="color: #008080; "> 49</span>     {<br /><span style="color: #008080; "> 50</span>         delete static_cast<T2*>(<span style="color: #0000FF; ">this</span>);<br /><span style="color: #008080; "> 51</span>     }<br /><span style="color: #008080; "> 52</span> };<br /><span style="color: #008080; "> 53</span> <br /><span style="color: #008080; "> 54</span> <span style="color: #008000; ">//</span><span style="color: #008000; ">CAutoRefPtr provides the basis for all other smart pointers</span><span style="color: #008000; "><br /></span><span style="color: #008080; "> 55</span> <span style="color: #008000; "></span>template <<span style="color: #0000FF; ">class</span> T><br /><span style="color: #008080; "> 56</span> <span style="color: #0000FF; ">class</span> CAutoRefPtr<br /><span style="color: #008080; "> 57</span> {<br /><span style="color: #008080; "> 58</span> <span style="color: #0000FF; ">public</span>:<br /><span style="color: #008080; "> 59</span>     CAutoRefPtr() <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 60</span>     {<br /><span style="color: #008080; "> 61</span>         p = NULL;<br /><span style="color: #008080; "> 62</span>     }<br /><span style="color: #008080; "> 63</span>     CAutoRefPtr(_In_ <span style="color: #0000FF; ">int</span> nNull) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 64</span>     {<br /><span style="color: #008080; "> 65</span>         (<span style="color: #0000FF; ">void</span>)nNull;<br /><span style="color: #008080; "> 66</span>         p = NULL;<br /><span style="color: #008080; "> 67</span>     }<br /><span style="color: #008080; "> 68</span>     CAutoRefPtr(_In_opt_ T* lp) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 69</span>     {<br /><span style="color: #008080; "> 70</span>         p = lp;<br /><span style="color: #008080; "> 71</span>         <span style="color: #0000FF; ">if</span> (p != NULL)<br /><span style="color: #008080; "> 72</span>         {<br /><span style="color: #008080; "> 73</span>             p->AddRef();<br /><span style="color: #008080; "> 74</span>         }<br /><span style="color: #008080; "> 75</span>     }<br /><span style="color: #008080; "> 76</span> <br /><span style="color: #008080; "> 77</span>     CAutoRefPtr(<span style="color: #0000FF; ">const</span> CAutoRefPtr & src) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 78</span>     {<br /><span style="color: #008080; "> 79</span>         p=src.p;<br /><span style="color: #008080; "> 80</span>         <span style="color: #0000FF; ">if</span>(p)<br /><span style="color: #008080; "> 81</span>         {<br /><span style="color: #008080; "> 82</span>             p->AddRef();<br /><span style="color: #008080; "> 83</span>         }<br /><span style="color: #008080; "> 84</span>     }<br /><span style="color: #008080; "> 85</span> <br /><span style="color: #008080; "> 86</span>     ~CAutoRefPtr() <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 87</span>     {<br /><span style="color: #008080; "> 88</span>         <span style="color: #0000FF; ">if</span> (p)<br /><span style="color: #008080; "> 89</span>         {<br /><span style="color: #008080; "> 90</span>             p->Release();<br /><span style="color: #008080; "> 91</span>         }<br /><span style="color: #008080; "> 92</span>     }<br /><span style="color: #008080; "> 93</span> <br /><span style="color: #008080; "> 94</span>     T* <span style="color: #0000FF; ">operator</span>->() <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; "> 95</span>     {<br /><span style="color: #008080; "> 96</span>         <span style="color: #0000FF; ">return</span> p;<br /><span style="color: #008080; "> 97</span>     }<br /><span style="color: #008080; "> 98</span> <br /><span style="color: #008080; "> 99</span>     <span style="color: #0000FF; ">operator</span> T*() <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">100</span>     {<br /><span style="color: #008080; ">101</span>         <span style="color: #0000FF; ">return</span> p;<br /><span style="color: #008080; ">102</span>     }<br /><span style="color: #008080; ">103</span>     T& <span style="color: #0000FF; ">operator</span>*() <span style="color: #0000FF; ">const</span><br /><span style="color: #008080; ">104</span>     {<br /><span style="color: #008080; ">105</span>         <span style="color: #0000FF; ">return</span> *p;<br /><span style="color: #008080; ">106</span>     }<br /><span style="color: #008080; ">107</span>     <span style="color: #008000; ">//</span><span style="color: #008000; ">The assert on operator& usually indicates a bug.  If this is really<br /></span><span style="color: #008080; ">108</span> <span style="color: #008000; ">    </span><span style="color: #008000; ">//</span><span style="color: #008000; ">what is needed, however, take the address of the p member explicitly.</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">109</span> <span style="color: #008000; "></span>    T** <span style="color: #0000FF; ">operator</span>&() <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">110</span>     {<br /><span style="color: #008080; ">111</span>         SASSERT(p==NULL);<br /><span style="color: #008080; ">112</span>         <span style="color: #0000FF; ">return</span> &p;<br /><span style="color: #008080; ">113</span>     }<br /><span style="color: #008080; ">114</span>     <span style="color: #0000FF; ">bool</span> <span style="color: #0000FF; ">operator</span>!() <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">115</span>     {<br /><span style="color: #008080; ">116</span>         <span style="color: #0000FF; ">return</span> (p == NULL);<br /><span style="color: #008080; ">117</span>     }<br /><span style="color: #008080; ">118</span>     <span style="color: #0000FF; ">bool</span> <span style="color: #0000FF; ">operator</span><(_In_opt_ T* pT) <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">119</span>     {<br /><span style="color: #008080; ">120</span>         <span style="color: #0000FF; ">return</span> p < pT;<br /><span style="color: #008080; ">121</span>     }<br /><span style="color: #008080; ">122</span>     <span style="color: #0000FF; ">bool</span> <span style="color: #0000FF; ">operator</span>!=(_In_opt_ T* pT) <span style="color: #0000FF; ">const</span><br /><span style="color: #008080; ">123</span>     {<br /><span style="color: #008080; ">124</span>         <span style="color: #0000FF; ">return</span> !<span style="color: #0000FF; ">operator</span>==(pT);<br /><span style="color: #008080; ">125</span>     }<br /><span style="color: #008080; ">126</span>     <span style="color: #0000FF; ">bool</span> <span style="color: #0000FF; ">operator</span>==(_In_opt_ T* pT) <span style="color: #0000FF; ">const</span> <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">127</span>     {<br /><span style="color: #008080; ">128</span>         <span style="color: #0000FF; ">return</span> p == pT;<br /><span style="color: #008080; ">129</span>     }<br /><span style="color: #008080; ">130</span> <br /><span style="color: #008080; ">131</span>     T* <span style="color: #0000FF; ">operator</span>=(_In_opt_ T* lp) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">132</span>     {<br /><span style="color: #008080; ">133</span>         <span style="color: #0000FF; ">if</span>(*<span style="color: #0000FF; ">this</span>!=lp)<br /><span style="color: #008080; ">134</span>         {<br /><span style="color: #008080; ">135</span>             <span style="color: #0000FF; ">if</span>(p)<br /><span style="color: #008080; ">136</span>             {<br /><span style="color: #008080; ">137</span>                 p->Release();<br /><span style="color: #008080; ">138</span>             }<br /><span style="color: #008080; ">139</span>             p=lp;<br /><span style="color: #008080; ">140</span>             <span style="color: #0000FF; ">if</span>(p)<br /><span style="color: #008080; ">141</span>             {<br /><span style="color: #008080; ">142</span>                 p->AddRef();<br /><span style="color: #008080; ">143</span>             }<br /><span style="color: #008080; ">144</span>         }<br /><span style="color: #008080; ">145</span>         <span style="color: #0000FF; ">return</span> *<span style="color: #0000FF; ">this</span>;<br /><span style="color: #008080; ">146</span>     }<br /><span style="color: #008080; ">147</span> <br /><span style="color: #008080; ">148</span>     T* <span style="color: #0000FF; ">operator</span>=(_In_ <span style="color: #0000FF; ">const</span> CAutoRefPtr<T>& lp) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">149</span>     {<br /><span style="color: #008080; ">150</span>         <span style="color: #0000FF; ">if</span>(*<span style="color: #0000FF; ">this</span>!=lp)<br /><span style="color: #008080; ">151</span>         {<br /><span style="color: #008080; ">152</span>             <span style="color: #0000FF; ">if</span>(p)<br /><span style="color: #008080; ">153</span>             {<br /><span style="color: #008080; ">154</span>                 p->Release();<br /><span style="color: #008080; ">155</span>             }<br /><span style="color: #008080; ">156</span>             p=lp;<br /><span style="color: #008080; ">157</span>             <span style="color: #0000FF; ">if</span>(p)<br /><span style="color: #008080; ">158</span>             {<br /><span style="color: #008080; ">159</span>                 p->AddRef();<br /><span style="color: #008080; ">160</span>             }<br /><span style="color: #008080; ">161</span>         }<br /><span style="color: #008080; ">162</span>         <span style="color: #0000FF; ">return</span> *<span style="color: #0000FF; ">this</span>;    <br /><span style="color: #008080; ">163</span>     }<br /><span style="color: #008080; ">164</span> <br /><span style="color: #008080; ">165</span>     <span style="color: #008000; ">//</span><span style="color: #008000; "> Release the interface and set to NULL</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">166</span> <span style="color: #008000; "></span>    <span style="color: #0000FF; ">void</span> Release() <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">167</span>     {<br /><span style="color: #008080; ">168</span>         T* pTemp = p;<br /><span style="color: #008080; ">169</span>         <span style="color: #0000FF; ">if</span> (pTemp)<br /><span style="color: #008080; ">170</span>         {<br /><span style="color: #008080; ">171</span>             p = NULL;<br /><span style="color: #008080; ">172</span>             pTemp->Release();<br /><span style="color: #008080; ">173</span>         }<br /><span style="color: #008080; ">174</span>     }<br /><span style="color: #008080; ">175</span> <br /><span style="color: #008080; ">176</span>     <span style="color: #008000; ">//</span><span style="color: #008000; "> Attach to an existing interface (does not AddRef)</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">177</span> <span style="color: #008000; "></span>    <span style="color: #0000FF; ">void</span> Attach(_In_opt_ T* p2) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">178</span>     {<br /><span style="color: #008080; ">179</span>         <span style="color: #0000FF; ">if</span> (p)<br /><span style="color: #008080; ">180</span>         {<br /><span style="color: #008080; ">181</span>             p->Release();<br /><span style="color: #008080; ">182</span>         }<br /><span style="color: #008080; ">183</span>         p = p2;<br /><span style="color: #008080; ">184</span>     }<br /><span style="color: #008080; ">185</span>     <span style="color: #008000; ">//</span><span style="color: #008000; "> Detach the interface (does not Release)</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">186</span> <span style="color: #008000; "></span>    T* Detach() <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">187</span>     {<br /><span style="color: #008080; ">188</span>         T* pt = p;<br /><span style="color: #008080; ">189</span>         p = NULL;<br /><span style="color: #008080; ">190</span>         <span style="color: #0000FF; ">return</span> pt;<br /><span style="color: #008080; ">191</span>     }<br /><span style="color: #008080; ">192</span>     HRESULT CopyTo(_Deref_out_opt_ T** ppT) <span style="color: #0000FF; ">throw</span>()<br /><span style="color: #008080; ">193</span>     {<br /><span style="color: #008080; ">194</span>         <span style="color: #0000FF; ">if</span> (ppT == NULL)<br /><span style="color: #008080; ">195</span>             <span style="color: #0000FF; ">return</span> E_POINTER;<br /><span style="color: #008080; ">196</span>         *ppT = p;<br /><span style="color: #008080; ">197</span>         <span style="color: #0000FF; ">if</span> (p)<br /><span style="color: #008080; ">198</span>         {<br /><span style="color: #008080; ">199</span>             p->AddRef();<br /><span style="color: #008080; ">200</span>         }<br /><span style="color: #008080; ">201</span>         <span style="color: #0000FF; ">return</span> S_OK;<br /><span style="color: #008080; ">202</span>     }<br /><span style="color: #008080; ">203</span> <br /><span style="color: #008080; ">204</span> <span style="color: #0000FF; ">protected</span>:<br /><span style="color: #008080; ">205</span>     T* p;<br /><span style="color: #008080; ">206</span> };</div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #0000ff;">struct</span> IObjRef<br />{<br />    <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">long</span> AddRef() = 0;<br /><br />    <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">long</span> Release() = 0;<br />    <br />    <span style="color: #0000FF; ">virtual</span> <span style="color: #0000FF; ">void</span> OnFinalRelease() =0;<br />};<br /><br /><br /></div><img src ="http://www.shnenglu.com/Error/aggbug/210647.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/Error/" target="_blank">Enic</a> 2015-05-14 10:07 <a href="http://www.shnenglu.com/Error/archive/2015/05/14/210647.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.shnenglu.com/" title="精品视频久久久久">精品视频久久久久</a> <div class="friend-links"> </div> </div> </footer> <a href="http://www.eurocake.com.cn" target="_blank">一97日本道伊人久久综合影院</a>| <a href="http://www.f4home.cn" target="_blank">久久亚洲欧美国产精品 </a>| <a href="http://www.bjwx2008.cn" target="_blank">99久久婷婷国产一区二区</a>| <a href="http://www.liopenfactory.com.cn" target="_blank">久久中文娱乐网</a>| <a href="http://www.96papa.cn" target="_blank">97香蕉久久夜色精品国产 </a>| <a href="http://www.kunqun168.cn" target="_blank">国产精品一区二区久久不卡</a>| <a href="http://www.flcqki.cn" target="_blank">26uuu久久五月天</a>| <a href="http://www.sd43.cn" target="_blank">2019久久久高清456</a>| <a href="http://www.corporateavenue.cn" target="_blank">久久午夜伦鲁片免费无码</a>| <a href="http://www.gvyf.cn" target="_blank">久久久久久国产精品免费免费</a>| <a href="http://www.ydxxfw.cn" target="_blank">97久久国产综合精品女不卡</a>| <a href="http://www.fl07.cn" target="_blank">精品国产91久久久久久久a</a>| <a href="http://www.geiduan.cn" target="_blank">久久夜色精品国产噜噜噜亚洲AV</a>| <a href="http://www.izakka.net.cn" target="_blank">国产成人精品久久亚洲</a>| <a href="http://www.gbagba.cn" target="_blank">精品无码久久久久久午夜</a>| <a href="http://www.giep.cn" target="_blank">久久精品极品盛宴观看</a>| <a href="http://www.pcsaver.cn" target="_blank">亚洲一区中文字幕久久</a>| <a href="http://www.tmnv.cn" target="_blank">久久综合亚洲欧美成人</a>| <a href="http://www.566wan.cn" target="_blank">久久精品极品盛宴观看</a>| <a href="http://www.enetbase.cn" target="_blank">久久精品成人免费国产片小草</a>| <a href="http://www.yeyegan.cn" target="_blank">久久精品国产亚洲AV高清热</a>| <a href="http://www.fc-lawyer.cn" target="_blank">亚洲日本久久久午夜精品</a>| <a href="http://www.csrjgzs.cn" target="_blank">久久精品国产一区二区电影</a>| <a href="http://www.hhlou.com.cn" target="_blank">WWW婷婷AV久久久影片</a>| <a href="http://www.xcfsfl.cn" target="_blank">国产aⅴ激情无码久久</a>| <a href="http://www.fengbiaochem.com.cn" target="_blank">久久影院久久香蕉国产线看观看</a>| <a href="http://www.igzan.cn" target="_blank">久久久久四虎国产精品</a>| <a href="http://www.rongchenjiaxiao.cn" target="_blank">久久精品国产99久久久</a>| <a href="http://www.shbolangjixie.cn" target="_blank">久久午夜夜伦鲁鲁片免费无码影视</a>| <a href="http://www.cool45.cn" target="_blank">久久精品国产亚洲Aⅴ蜜臀色欲 </a>| <a href="http://www.xszuhao.cn" target="_blank">久久久免费观成人影院</a>| <a href="http://www.ding-u.cn" target="_blank">777久久精品一区二区三区无码</a>| <a href="http://www.dqjjk.cn" target="_blank">久久99精品久久只有精品</a>| <a href="http://www.njw2008.cn" target="_blank">久久天天躁狠狠躁夜夜躁2O2O</a>| <a href="http://www.hzf89.cn" target="_blank">欧美亚洲国产精品久久高清</a>| <a href="http://www.songyufen.cn" target="_blank">日本精品久久久久久久久免费</a>| <a href="http://www.kunzuo.cn" target="_blank">国产午夜电影久久</a>| <a href="http://www.xgpzgs8.cn" target="_blank">国产日韩久久久精品影院首页</a>| <a href="http://www.rainbows.net.cn" target="_blank">久久―日本道色综合久久</a>| <a href="http://www.hxg123.cn" target="_blank">欧美亚洲国产精品久久蜜芽</a>| <a href="http://www.uoip.cn" target="_blank">久久亚洲精品视频</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>