////////////////////////////////////////////////////////////////////
乽抦傜側偐偭偨偠傖偡傑偝傟側偄両
偨偭偨俁擔偱偱偒傞丄1僉乕儚乕僪偱YAHOO!忋埵昞帵偺偨傔偺嬌旈SEO懳嶔両乿
http://af1.mag2.com/m/af/0000008658/001/s00000004418001/002
////////////////////////////////////////////////////////////////////
/*

    KAB-studio.h


    (C)KAB-studio 1999 - 2006 ALL RIGHTS RESERVED.
        http://www.kab-studio.biz/
        info@mail.kab-studio.biz

    憲怣擔丗 2006/10/30(Mon) No.380
    攝怣悢丗 1694
    敪峴尦丗 傑偖傑偖 ( URL: http://www.mag2.com/  ID: 0000012198 )
*/
////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////
// NEW!!
http://www.kab-studio.biz/index.html

2006/10/30 (Mon)
丂傎偲偼乕奜揱俁偵P.77傪捛壛両
[ 嶰恖崌懱儂僢僩僴乕僽 奜揱俁 亂儚僞僔 偺 僉儘僋亃 ]
http://www.kab-studio.biz/Comic/HotHerbA3/index.html

2006/10/30 (Mon)
丂#pragma twice 儂乕儉儁乕僕斉偵傾乕僇僀僽捛壛両
17.08 傾僢僾僉儍僗僩偲僟僂儞僉儍僗僩
17.09 宲彸偲僆乕僶乕儔僀僪
[ #pragma twice ]
http://www.kab-studio.biz/Programing/PragmaTwice/index.html


////////////////////////////////////////////////////////////////////
// 偪傚偍晛捠側擔婰
http://www.kab-studio.biz/nikki2/index.html

2006/10/22 (Sun)
丂侾侾帪婲偒丅懱偑偩傞偄丅柧擔暘偺峏怴偟偰傉傜偲傢彂偄偰丅梉曽偼
僒僢僇乕娤偰擔杮僔儕乕僘娤偮偮傎偲偼乕奜揱俁昤偒丅

2006/10/23 (Mon)
丂懱挷偑傢偐傜傫丅偍偟偛偲傐偟傖傞丅梉曽傑偱僟價儞僌丄偦傟偐傜
Machician丅栭偵僾乕儖丅彮偟梋桾偑偱偒偨丠

2006/10/24 (Tue)
丂姦偔偰擇搙怮丅Machician偺杮暥偲扨岅傪儕儕乕僗丅梉曽偼姰慡傾僂僩丅

2006/10/25 (Wed)
丂屵慜拞偼傎偲偼乕奜揱俁傪彮偟丅屵屻偼Machician偺僷僼僅乕儅儞僗
僠儏乕僯儞僌偲偐丅梉曽偵僟價儞僌偲僯儞僥儞僪乕DS Lite偺廋棟丅
栭偵僾乕儖偲擔杮僔儕乕僘丅

2006/10/26 (Thu)
丂傑偨擇搙怮丅儊僀儞偼傎偲偼乕奜揱俁丅偆偨傢傟傞傕偺PS2斉棃傞丅
栭偼擔杮僔儕乕僘丅擔僴儉偍傔偱偲偆丅

2006/10/27 (Fri)
丂4帪敿傑偱偆偨傢傟傪丅崱擔傕婎杮偼偆偨傢傟丅偆偨傢傟傪偟偮偮
傉傜偲傢彂偒丅僆乕僩儌乕僪偑偁傟偽乧乧丅栭偵僾乕儖偱1.5僉儘塲偖丅

2006/10/28 (Sat)
丂傑偨4帪敿傑偱偆偨傢傟丅偍拫偵墶昹偱僐儈僢僋僗戝検峸擖丅僋儕僢僾宆
iPod shuffle偑側偄丅婣偭偰偐傜偼僒僢僇乕娤偨傝傾僯儊娤偨傝偒傜傜偺
姶憐彂偄偨傝丅栭偵僾乕儖峴偒懝偹傞丅


////////////////////////////////////////////////////////////////////
// 偐傇傠偖丅
http://d.hatena.ne.jp/kab_studio/

2006/10/22 (Sun)
http://d.hatena.ne.jp/kab_studio/20061022
偍丄婲偒乧乧
[KAB-studio]傉傜偲傢捛壛丅
[KAB-studio][傎偲偼乕]傎偲偼乕奜揱俁 P.76
[傾僯儊]乽夊乿 戞30榖乽懳寛乿
[傾僯儊]偍偹偑偄儅僀儊儘僨傿乣偔傞偔傞僔儍僢僼儖両乣 戞30榖乽僺儞僋偺怷偵峴偗偨傜僀僀僫両乿
[傾僯儊]壋彈偼偍巓偝傑偵楒偟偰傞 戞3榖乽偍偲傔偑壋彈傪慖傇帪乿
[傾僯儊]偔偠傃偒傾儞僶儔儞僗 戞3榖乽偒傚偆偩偄偑偨偄傊傫偩丅6揰乿
[傾僯儊]Gift 乣eternal rainbow乣 戞3榖乽弶楒偺恖乿

2006/10/23 (Mon)
http://d.hatena.ne.jp/kab_studio/20061023
婲偒偨乧乧
偓傖偁丅
[悈塲僟僀僄僢僩]10寧10夞栚
[傾僯儊]嬥怓偺僐儖僟 戞4榖乽柪偄怱偺儚儖僣乿
[傾僯儊]栭柧偗慜傛傝椱棡怓側 Crescent Love 戞3榖乽偍昉條椏棟懳寛!!乿
[傾僯儊]僊儍儔僋僔乕僄儞僕僃傞乣傫 戞4榖乽桿榝両3帪偺僇僼僃僥乕僽傞乣傫乿

2006/10/24 (Tue)
http://d.hatena.ne.jp/kab_studio/20061024
婲偒偨
[KAB-studio][Machician]慡暥捛壛
僾乕儖偼媥傓丅
[link]乽Vector maglog乿僗僞乕僩
[傾僯儊]BLACK BLOOD BROTHERS 戞4榖乽屆寣乿
[傾僯儊]N丒H丒K偵傛偆偙偦両 戞16榖乽僎乕儉僆乕僶乕偵傛偆偙偦両乿
[傾僯儊]Pumpkin Scissors 戞4榖乽僸價妱傟偨徰憸乿

2006/10/25 (Wed)
http://d.hatena.ne.jp/kab_studio/20061025
婲偒偨
[KAB-studio][Machician]偪傚傃偭偲僷僼僅乕儅儞僗傾僢僾
[KAB-studio][Machician]婡擻捛壛
[悈塲僟僀僄僢僩]10寧11夞栚
[憰旛]僯儞僥儞僪乕DS Lite傪廋棟偵弌偟偨丅
[傾僯儊]DEATH NOTE 戞4榖乽捛愓乿
[傾僯儊]僽儔僢僋儔僌乕儞 戞16榖乽Greenback Jane乿
[傾僯儊]僱僊傑両丠 戞4榖乽愭惗乧乧巹丄弶傔偰側傫偱偡乧乧乿

2006/10/26 (Thu)
http://d.hatena.ne.jp/kab_studio/20061026
婲偒偨乧乧丅
[攦][偆偨傢傟傞傕偺PS2]Amazon偐傜摓拝両
[偆偨傢傟傞傕偺PS2]僼傽乕僗僩僀儞僾儗僢僔儑儞丅
[link][憰旛]儅僯傾岦偗偱偼側偔乬戝恖乭傪堄幆偟偨丄僂傿儖僐儉乽9乮nine乯乿
僾乕儖偼媥傓丅
杒奀摴擔杮僴儉僼傽僀僞乕僘偑擔杮堦両
[傾僯儊]僀僲僙儞僩丒償傿乕僫僗 戞12榖乽悽奅乿(廔)
[傾僯儊]晲憰楤嬥 戞4榖乽傕偆堦偮偺怴偟偄柦乿

2006/10/27 (Fri)
http://d.hatena.ne.jp/kab_studio/20061027
婲偒偨丅
[偆偨傢傟傞傕偺PS2]峜偵側傞傑偱丅
[悈塲僟僀僄僢僩]10寧12夞栚
[傾僯儊]僓丒僒乕僪 乣憮偄摰偺彮彈乣 戞24榖乽偙傟偐傜巒傑傞暔岅乿(廔)
[傾僯儊]偁偝偭偰偺曽岦丅 戞4榖乽怣偠偰傎偟偄乿
[傾僯儊]偡傕傕傕傕傕傕乣抧忋嵟嫮偺儓儊乣 戞4榖乽恗媊側偒埫嶦寁夋乿

2006/10/28 (Sat)
http://d.hatena.ne.jp/kab_studio/20061028
婲偒乧乧丅
[攦]儔僕僆CD乽偆偨傢傟傞傕偺傜偠偍乿Vol.1 CD+CD乚ROM
[偆偨傢傟傞傕偺PS2]僩僂僇偲偺弌夛偄丅
[link]墶昹偁偍偄彂揦
[攦]僐儈僢僋僗偲偐丅
[偒傜傜]傑傫偑僞僀儉偒傜傜Carat 2006擭12寧崋
[傾僯儊]嵤塤崙暔岅 戞26榖乽埮栭偺塆乿
[傾僯儊]偍偲偓廵巑 愒偢偒傫 戞18榖乽偆偨偆嶰廵巑乿
[傾僯儊]傆偟偓惎偺仚傆偨偛昉 Gyu! 戞31榖乽僴乕僩偺嵒偱仚僴僢僺乕僨乕僩両丠乿
[傾僯儊]僐乕僪僊傾僗 斀媡偺儖儖乕僔儏 戞4榖乽偦偺柤偼僛儘乿


////////////////////////////////////////////////////////////////////
// Ajax偱僄儘僎乕傪嶌傞僽儘僌
http://d.hatena.ne.jp/AjaxEroge/

乮崱廡偼偍媥傒偱偡乯


////////////////////////////////////////////////////////////////////
// 晽夒丄晳偄
http://www.kab-studio.biz/Novel/Fuga/index.html

仭丂戞廫屲復丂戺傞揵傒丄惔傜偐側寣棴傝丂亅俉亅

丂僉傿僀僀僀僀僀僀傿乧乧乧乧傿儞丅
丂屗傪奐偗偰擖偭偨弖娫丄崅偔丄悷傫偩壒怓偑嬁偄偨丅
丂椃娰偺尯娭偵抲偐傟偰偄傞丄擹椢怓傪偟偨嬥懏偺忇丅椉庤偱暍偊傞偐暍偊
側偄偐偲偄偆傎偳偺戝偒偝丄偦偺掁傝忇幃偺忇偑丄奜偐傜悂偒崬傫偩晽偵梙
傟偨偺偐丄摟偒捠傞傛偆側壒傪憈偱忋偘偨丅
乽偼偀偄乿
丂偲墱偐傜惡偑暦偙偊傞丅偦偺娫偵晳偼慜偵恑傓丅乽椃娰偺尯娭乿偺偼偢側
偺偩偑丄偦傟偼晛捠偺壠偺尯娭丄偲尵偭偰傕嵎偟巟偊側偄傎偳嫹偔丄晳偑媗
傔側偄偲彮擭偑擖偭偰偙傟側偄傎偳偩偭偨丅
丂尯娭偺墱丄斅挘傝偺捠楬傪捠偭偰彈彨偑傗偭偰偔傞丅
丂僐僅僆僆僆僆僆僆乧乧乧乧僅儞丅
丂彮擭偑尯娭偵擖傝丄屻傠庤偵堷偒屗傪暵偠傞嵺偵傕忇偺壒偑嬁偔丅晳偺帪
偲偼堎側傞丄彮偟掅偄惷偐側壒怓丅
乽乧乧乧乧乿
丂堦弖丄棫偪巭傑偭偰偐傜丄
乽乧乧偍懸偪偟偰偍傝傑偟偨乿
丂彴偵嵗傝挌擩偵摢傪壓偘傞丅
乽寢敀條偱偛偞偄傑偡偹丄偛媥宔偲偺偙偲偱偡偑傛傠偟偄偱偟傚偆偐乿
乽偼偄丄杮擔拞偵婣傜側偗傟偽偄偗側偄偺偱乿
丂偲摎偊傞傛偆抭巕偐傜尵傢傟偰偄偨丅
乽偦傟偼偦傟偼丅嬐偐側帪娫偱偟傚偆偗傟偳傕丄偳偆偧偛備偭偔傝偍偔偮傠
偓偔偩偝偄丅偝偝丄偳偆偧乿
丂彈彨偵埬撪偝傟傞傑傑偵晳払偼楲壓傪恑傓丅拞偼斅挘傝偺嵶偄捠楬偑弰
傝丄偦傟偼傑傞偱柪楬偺傛偆偵墱傑偱懕偄偰偄傞丅尯娭偐傜偼憐憸傕偱偒側
偄傎偳椃娰偼峀偐偭偨丅
丂偦偺捠楬傪丄摉慠偩偑彈彨偼柪偆偙偲側偔恑傓丅乽彈彨乿乧乧偩偲晳偼巚
偆偑丄偦傟偼恎偵拝偗傞拝暔偑旕忢偵崅壙偵尒偊傞偐傜偦偆巚偆偩偗偱丄傕
偟偐偟偨傜堘偆偐傕偟傟側偄丄偲傕姶偠傞丅攚偼晳傛傝傕掅偔丄昞忣傕偳偙
偲側偔巕嫙偭傐偝傪姶偠偝偣傞廮榓側傕偺偱丄乽彈彨乿偲偄偆尵梩偐傜姶偠
傜傟傞埿尩偺傛偆側傕偺偼丄栚偺慜偺彈惈偐傜偼姶偠傜傟側偐偭偨丅
                                                              (懕偔)

////////////////////////////////////////////////////////////////////
// JavaA2Z
http://www.kab-studio.biz/Programing/JavaA2Z/index.html

仭捛壛丒峏怴扨岅

乮崱廡偺捛壛偼偁傝傑偣傫乯


////////////////////////////////////////////////////////////////////
乽抦傜側偐偭偨偠傖偡傑偝傟側偄両
偨偭偨俁擔偱偱偒傞丄1僉乕儚乕僪偱YAHOO!忋埵昞帵偺偨傔偺嬌旈SEO懳嶔両乿
http://af1.mag2.com/m/af/0000008658/001/s00000004418001/002
////////////////////////////////////////////////////////////////////
// #pragma twice
http://www.kab-studio.biz/Programing/PragmaTwice/index.html

丂Version 17.25
栠傝抣偺堦帪曄悢

乽慜夞偼僗儅乕僩億僀儞僞偺奣梫傪愢柧偟傑偟偨乿
亀傑偩慡慠暘偐傜側偄偗偳亁
乽偲偄偆傢偗偱慜夞偺懕偒偐傜丅 GetPrinterInstance() 娭悢偺埲壓偺売強
偱丄 CSmartPointer 僋儔僗偺曄悢偑嶌傜傟傑偡乿

        CSmartPointer cSmartPointer( new CDebugPrinter() );

乽偙偺 cSmartPointer 曄悢偼丄僐儞僗僩儔僋僞偱偙傫側姶偠偵嶌傜傟傑偡乿

劇 cSmartPointer劅劅劅劉          劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺劆Output()                      劆
劆m_piRefCounter 仺仺仺仺仺仺     劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
劋劅劅劅劅劅劅劅劅劅劅劊    伀     劇 int 宆曄悢 劉
                             仺仺仺劆 1          劆
                                   劋劅劅劅劅劅劅劊
乽 cSmartPointer 曄悢偑亂僗儅乕僩億僀儞僞亃丄塃偺 CDebugPrinter 僋儔僗
偑 Version 17.20 ( No.375 ) 偐傜巊梡偟偰偄傞亂巊梡偟偨偄僋儔僗亃乿
亀偙偺 CDebugPrinter 僋儔僗偑億儕儌乕僼傿僘儉偡傞傫偩傛偹亁
乽偦偆偄偆偙偲丅惓妋偵尵偆偲丄 cSmartPointer 曄悢偺拞偵偁傞 
m_pcPrinter 億僀儞僞偑億儕儌乕僼傿僘儉偡傞姶偠偐側乿
亀偱丄嵟屻偺 int 宆曄悢偑丄嶲徠僇僂儞僞偭偰偄偆偺側傫偩傛偹亁
乽偦偆丄偙傟偐傜愢柧偡傞偗偳丄 CDebugPrinter 僋儔僗偺曄悢偺傾僪儗僗
偼暋悢偺僗儅乕僩億僀儞僞偑帩偮偙偲偵側傝傑偡乿
亀偦偺悢傪偙偙偵庢偭偰偍偔丄偭偰偙偲側傫偩傛偹亁
乽偦偆偄偆偙偲丅幚嵺偵偦偆側傞棳傟傪尒偰偄偒傑偡丅愭傎偳偺曄悢傪嶌偭
偰偄傞売強偺師偺峴偼丄埲壓偺傛偆偵側偭偰偄傑偡乿

        return cSmartPointer;

亀偝偭偒偺曄悢傪 return 偱曉偟偰傞傢偗偹亁
乽偙偺 return 偱曉偡曄悢偼丄埲壓偺 GetPrinterInstance() 娭悢傪屇傃弌
偟偰偄傞売強偵抲偒姺傢傝傑偡乿

    CSmartPointer cSmartPointer = GetPrinterInstance( DEBUG_PRINTER );

乽偮傑傝丄偙傟偼埲壓偺傛偆偵側偭偰偄傞丄偲偄偆偙偲偱偡乿

                           return cSmartPointer;
                                     伀
    CSmartPointer cSmartPointer = cSmartPointer;
                     (嵍)              (塃)

亀娭悢偑 return 偱曉偟偨曄悢偵抲偒姺傢傞丄偭偰傢偗偹亁
乽偙偙偺億僀儞僩偼埲壓偺2揰乿

丒嵍偺 cSmartPointer 曄悢偑丄崱丄嶌傜傟傛偆偲偟偰偄傞丅
丂仺僐儞僗僩儔僋僞偑屇傃弌偝傟傞丅
丒 = 偺嵍偲塃偑摨偠宆丅
丂仺僐僺乕僐儞僗僩儔僋僞偑屇傃弌偝傟傞丅

亀僐僺乕僐儞僗僩儔僋僞丠亁
乽偦偆丄 Version 16.12 ( No.339 ) 偱愢柧偟偨傛偆偵丄 = 墘嶼巕偱傕
乹曄悢傪傪嶌傞偲偒乺側傜僐儞僗僩儔僋僞偑屇傃弌偝傟傑偡丅壛偊偰丄摨偠 
CSmartPointer 僋儔僗偩偐傜乿
亀僐僺乕僐儞僗僩儔僋僞偑屇傃弌偝傟傞丄偭偰傢偗偹亁
乽偦偙偱 CSmartPointer 僋儔僗偺偙偺僐僺乕僐儞僗僩儔僋僞偑屇傃弌偝傟
傑偡乿

    // 僐僺乕僐儞僗僩儔僋僞丅
    CSmartPointer( const CSmartPointer &p_rcSmartPointer )
        : m_pcPrinter( p_rcSmartPointer.m_pcPrinter )
        , m_piRefCounter( p_rcSmartPointer.m_piRefCounter )
    {
        AddRef();
    }

亀 m_pcPrinter 偲 m_piRefCounter 偺儊儞僶曄悢傪僐僺乕偟偰傞傫偩偹亁
乽偙偺帪揰偱丄恾偵偡傞偲埲壓偺傛偆偵側傝傑偡丅

劇 cSmartPointer(塃)劅劅劉        劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺劆Output()                      劆
劆m_piRefCounter 仺仺仺仺仺仺     劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
劋劅劅劅劅劅劅劅劅劅劅劅劊  伀     劇 int 宆曄悢 劉      仾
                             仺仺仺劆 1          劆      仾
                            仾     劋劅劅劅劅劅劅劊      仾
劇 cSmartPointer(嵍)劅劅劉  仾                           仾
劆m_piRefCounter 仺仺仺仺仺仺                            仾
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劋劅劅劅劅劅劅劅劅劅劅劅劊 

亀偁丄偦偭偐丅偝偭偒偺乹娭悢偑栠傝抣偵抲偒姺傢傞乺偺偩偲丄亁

    CSmartPointer cSmartPointer = cSmartPointer;
                     (嵍)              (塃)

亀嵍塃偺 cSmartPointer 偭偰丄椉曽偺儊儞僶曄悢偑摨偠曄悢巜偟偰傞傫偩亁
乽偦偆丄椉曽偲傕摨偠傾僪儗僗傪帩偭偰傞偐傜偹丅偝傜偵丄偙偺偁偲
僐僺乕僐儞僗僩儔僋僞偼 AddRef() 儊儞僶娭悢傪屇傃弌偟偰偄傑偡乿

    // 嶲徠僇僂儞僞乕傪 1 憹傗偟傑偡丅
    void AddRef()
    {
        // 嶲徠僇僂儞僞乕傪傂偲偮憹傗偟傑偡丅
        ++( *m_piRefCounter );
    }

乽偙偺 m_piRefCounter 儊儞僶曄悢偼丄忋偺恾偺乹 int 宆曄悢乺傪巜偟偰
傞偐傜乿
亀偭偰偙偲偼丄偙偺 1 偑憹偊傞傫偩亁
乽偩偐傜偙偆側傝傑偡乿

劇 cSmartPointer(塃)劅劅劉        劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺劆Output()                      劆
劆m_piRefCounter 仺仺仺仺仺仺     劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
劋劅劅劅劅劅劅劅劅劅劅劅劊  伀     劇 int 宆曄悢 劉      仾
   仾1偮傔丅                 仺仺仺劆 2 仼憹偊偨 劆      仾
   伀2偮傔丅                仾     劋劅劅劅劅劅劅劊      仾
劇 cSmartPointer(嵍)劅劅劉  仾                           仾
劆m_piRefCounter 仺仺仺仺仺仺                            仾
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劋劅劅劅劅劅劅劅劅劅劅劅劊 

乽慜夞愢柧偟偨傛偆偵丄偙偺 int 宆曄悢偼嶲徠僇僂儞僞乕丄偮傑傝
乹CDebugPrinter 僋儔僗偺曄悢乺偺傾僪儗僗傪帩偭偰偄傞僗儅乕僩億僀儞僞
偺悢傪帩偭偰偄傑偡乿
亀偁丄偭偰偙偲偼丄 cSmartPointer(嵍) 偑嶌傜傟偨偐傜丄 1 憹傗偟偨偭偰
偙偲丠亁
乽偦偆偄偆偙偲丅廳梫側偙偲偼乹僐僺乕僐儞僗僩儔僋僞偑屇傃弌偝傟傞乺偲
偄偆偙偲偼昁偢乹尦乆 CSmartPointer 僋儔僗偺曄悢偑偁偭偰偦傟偑搉偝傟
傞乺偲偄偆偙偲丅偩偐傜丄億僀儞僞傪僐僺乕偟偰丄嶲徠僇僂儞僞乕傪憹傗偡
傫偱偡乿
亀乧乧愨懳偵偦傟埲奜偼側偄丄偭偰偙偲丠亁
乽偦偆丄僐僺乕僐儞僗僩儔僋僞偼摨僋儔僗偺曄悢偑搉偝傟偨帪偵偟偐屇偽傟
側偄丄偭偰偄偆儖乕儖偑偁傞偐傜偹丅偦偺儖乕儖傪傆傑偊偰丄偙偆偄偆傆偆
偵嶌偭偰偄傞傢偗乿
亀側傫偐僷僘儖傒偨偄乧乧亁
乽偦傟偼偁傞偐傕偹丅偝偰丄偙偙偐傜傑偨暋嶨偵側傝傑偡乿
亀偘偘両両亁
乽偝偭偒偺丄娭悢偑栠傝抣偵抲偒姺傢偭偨晹暘傪尒偰傒傑偡乿

    CSmartPointer cSmartPointer = cSmartPointer;
                     (嵍)              (塃)

乽偙偺塃懁偺 cSmartPointer 曄悢偼丄尦乆偼 GetPrinterInstance() 娭悢
偺曄悢偱偡乿
亀偦偩偹丄 return 偱曉偟偨偺偩偐傜亁
乽偱丄娭悢偺拞偱嶌偭偨曄悢偼乧乧乿
亀娭悢偐傜敳偗傞偲側偔側傞両亁
乽偦偆丄偩偐傜 cSmartPointer (嵍)偺僐僺乕僐儞僗僩儔僋僞偑屇傃弌偝傟
偨偁偲丄 cSmartPointer (塃)偺僨僗僩儔僋僞偑屇傃弌偝傟傞傫偱偡丅

            愭偵偙偪傜偺僐僺乕僐儞僗僩儔僋僞偑屇偽傟傞丅
                       伀    偦偺偁偲偙偪傜偺僨僗僩儔僋僞偑屇偽傟傞丅
                       伀               伀
    CSmartPointer cSmartPointer = cSmartPointer;
                     (嵍)              (塃)

亀僨僗僩儔僋僞偭偰 Version 11.11 ( No.211 ) 偱傗偭偨丄曄悢偑側偔側傞
帪偵屇傃弌偝傟傞儊儞僶娭悢偩傛偹亁
乽偦偆丄 CSmartPointer 僋儔僗偩偲埲壓偺儊儞僶娭悢偑偦偆偱偡乿

    // 僨僗僩儔僋僞丅
    ~CSmartPointer()
    {
        Release();
    }

亀偦偆偦偆丄僋儔僗柤偵亂~亃傪晅偗偨偺偑偦偆側傫偩傛偹亁
乽偙偺僨僗僩儔僋僞偑屇傃弌偝傟傞偲丄偦偺拞偱 Release() 儊儞僶娭悢傪
屇傃弌偟傑偡丅偙偺儊儞僶娭悢偼偙偆側偭偰偄傑偡乿

    // 嶲徠僇僂儞僞乕傪 1 尭傜偟丄僛儘側傜夝曻偟傑偡丅
    void Release()
    {
        // 嶲徠僇僂儞僞乕傪傂偲偮尭傜偟傑偡丅
        --( *m_piRefCounter );
        // 嶲徠僇僂儞僞乕偑僛儘偵側偭偨傜夝曻偟傑偡丅
        if( *m_piRefCounter == 0 )
        {
            delete m_pcPrinter;
            delete m_piRefCounter;
        }
    }

乽偙偺儊儞僶娭悢偱偼丄傑偢嶲徠僇僂儞僞乕傪尭傜偟傑偡乿

        --( *m_piRefCounter );

亀偍丄 AddRef() 儊儞僶娭悢偲媡偩亁
乽偙偆偡傞偙偲偱丄 int 宆曄悢偑 1 尭傝傑偡乿

劇 cSmartPointer(塃)劅劅劉        劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺劆Output()                      劆
劆m_piRefCounter 仺仺仺仺仺仺     劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
劋劅劅劅劅劅劅劅劅劅劅劅劊  伀     劇 int 宆曄悢 劉      仾
   仾1偮傔乮崱側偔側傞乯     仺仺仺劆 1 仼尭偭偨 劆      仾
   伀2偮傔丅                仾     劋劅劅劅劅劅劅劊      仾
劇 cSmartPointer(嵍)劅劅劉  仾                           仾
劆m_piRefCounter 仺仺仺仺仺仺                            仾
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劋劅劅劅劅劅劅劅劅劅劅劅劊 

乽偦偺偁偲丄偙偺嶲徠僇僂儞僞乕偑 0 偵側偭偨偐僠僃僢僋偟傑偡乿

        // 嶲徠僇僂儞僞乕偑僛儘偵側偭偨傜夝曻偟傑偡丅
        if( *m_piRefCounter == 0 )

亀偱傕 0 偵側偭偰側偄傛偹亁
乽偆傫丄偩偐傜偙偺抜奒偱偼 if 偺拞偵偼擖傝傑偣傫丅偙傟偼偁偲偱傑偨愢
柧偟傑偡乿
亀偱丄偙偺儊儞僶娭悢偼廔傢傝丄偐側亁
乽偦偆丄僨僗僩儔僋僞偐傜傕敳偗偰 cSmartPointer (塃)偼側偔側傝傑偡乿

                                  劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
         (側偔側偭偨)             劆Output()                      劆
                                  劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
                                   劇 int 宆曄悢 劉      仾
                             仺仺仺劆 1          劆      仾
                            仾     劋劅劅劅劅劅劅劊      仾
劇 cSmartPointer(嵍)劅劅劉  仾                           仾
劆m_piRefCounter 仺仺仺仺仺仺                            仾
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劋劅劅劅劅劅劅劅劅劅劅劅劊 

乽偪傖傫偲嶲徠僇僂儞僞乕偺惍崌惈偑庢傟偰傞偙偲偵拲栚偟偰偔偩偝偄乿
亀 CDebugPrinter 僋儔僗偺曄悢傪巜偟偰傞僗儅乕僩億僀儞僞偑 1 偮偩偗丄
偩偐傜 int 宆曄悢偼 1 丄偍偍儂儞僩偩両亁
乽偲偄偆傢偗偱師夞偵懕偔両乿

/*
    Preview Next Story!
*/
亀側傫偐杮摉偵僷僘儖傒偨偄亁
乽 C++ 偭偰偄偆儖乕儖偱梀傇姶偠偐側乿
亀偡傫偛偔暋嶨側儖乕儖偩偗偳亁
乽偦偺儖乕儖傪偪傖傫偲棟夝偡傟偽乧乧乿
亀妝偟傔傞傛偆偵側傞丠亁
乽偲偄偆傢偗偱師夞乿
亙 Version 17.26 僗儅乕僩億僀儞僞偺帺摦夝曻 亜
亀偵偮偯偔両亁
乽傑丄妝偟偔側偭偰偼傑傞偲偦傟偼偦傟偱栤戣偩偗偳乿
亀偩傔偠傖傫亁


////////////////////////////////////////////////////////////////////
/*                          偛拲堄両両                            */

丒偙偺儊乕儖傪曉怣偟側偄偱偔偩偝偄丅
丒偛堄尒丒偛婓朷丒偛姶憐偼[僠儑乕晛捠側擔婰]傛傝偍憲傝偔偩偝偄丅
http://www.kab-studio.biz/nikki2/index.html
丒峸撉搊榐傪夝彍偟偨偄偲偒偵偼偙偺儁乕僕偱峴側偭偰偔偩偝偄丅
http://www.mag2.com/m/0000012198.htm
丒夝彍偼帺暘偱峴側偭偰偔偩偝偄丅
丒僶僢僋僫儞僶乕偼偙傟傜偺儁乕僕偵偁傝傑偡丅
http://backno.mag2.com/reader/Back?id=0000012198
http://www.kab-studio.biz/Freeware/index.html#MailMagazine


////////////////////////////////////////////////////////////////////
/*
    KAB-studio.h
      Weekly Mail Magazine.
      Written by Kaburaya Seiden.
      http://www.kab-studio.biz/Info/MailMagazine/

    (C)KAB-studio 1999 - 2006 ALL RIGHTS RESERVED.
        http://www.kab-studio.biz/
        info@mail.kab-studio.biz
*/
////////////////////////////////////////////////////////////////////

