////////////////////////////////////////////////////////////////////
仭仩乽妝揤僇乕僪乿擖夛偱傕傟側偔2,000億僀儞僩僾儗僛儞僩仩仭
<URL偼偙偪傜傊>
http://af1.mag2.com/m/af/0000008658/001/s00000002033002/012
僉儍儞儁乕儞婜娫拞擖夛偝傟偨曽偵偼傕傟側偔妝揤巗応偱巊偊傞2,000墌暘偺
億僀儞僩僾儗僛儞僩両僇乕僪棙梡偱挋傔偨億僀儞僩偼1億僀儞僩亖1墌偲偟偰
妝揤巗応偱巊偊傑偡両擭夛旓丒擖夛嬥偼傕偪傠傫塱擭柍椏偱偡丅
////////////////////////////////////////////////////////////////////
/*

    KAB-studio.h


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

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

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

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

2006/11/06 (Mon)
丂#pragma twice 儂乕儉儁乕僕斉偵傾乕僇僀僽捛壛両
17.10 壖憐娭悢
17.11 壖憐娭悢僥乕僽儖偭偰丠
[ #pragma twice ]
http://www.kab-studio.biz/Programing/PragmaTwice/index.html


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

2006/10/29 (Sun)
丂俀帪怮侾侽帪敿婲偒丅傎偲偼乕奜揱俁昤偒丅侾侾寧偼懯栚側寧偩偭偨丅
側偤偐iPod shuffle偵偦傢偦傢丅敪攧擔偑偢傟傞偲偄偆塡傕丅

2006/10/30 (Mon)
丂侾帪敿偵傎偲偼乕奜揱俁姰惉丅俋帪敿婲偒丅俀帪傑偱偆偨傢傟丅價僨僆偺
僟價儞僌偲僐儈僢僋僗偺惍棟丅栭偼僾乕儖丅崟捾偱僾乕儖塲偘側偔側傞丠

2006/10/31 (Tue)
丂侾侽帪婲偒丅栚妎傑偟偄偔偮偐偗偰傕婲偒傜傟側偄丅偍拫偵堓偑捝偔側傞丅
梉曽偵傎偲偼乕奜揱俁僱乕儉愗傝丅栭偼僾乕儖丅崱寧偼侾係夞丅iPod shuffle
偑弌壸姰椆偵丅偦偟偰偆偨傢傟偲Amazon丅

2006/11/01 (Wed)
丂俋帪婲偒丅挬憗偔婲偒傞僨儊儕僢僩丅偍拫偵媿槬怘傋偨偟丅iPod shuffle
偑撏偐側偄丅傎偲偼乕奜揱俁偺怴僉儍儔婲偙偟丅懱廳偑俇俁僉儘偵側偭偨傜丅

2006/11/02 (Thu)
丂俋帪婲偒丅偱傕憗婲偒偡傞堄枴側偄丠丂iTunes偑僀儞僗僩乕儖偱偒側偄丅
PC偑晄挷偡偓傞丅側偺偱嵞僙僢僩傾僢僾偡傞偙偲偵丅偟偐偟僙僢僩傾僢僾偵
幐攕偡傞丅偲傝偁偊偢偁偒傜傔偰iTunes偼僒乕僶乕偵僀儞僗僩乕儖偡傞丅

2006/11/03 (Fri)
丂栭拞偵暿儅僔儞偵Windows2000Pro傪僀儞僗僩乕儖丅儊僀儞儅僔儞偺IDE
働乕僽儖傪偼傔捈偟偨傜僀儞僗僩乕儖偱偒偨丅揙栭偟偰嵞僙僢僩傾僢僾丅
僠僢僾僙僢僩偺僪儔僀僶傪擖傟朰傟傞丅iPod shuffle偑撏偔両両丂栭偵
僾乕儖丅iPod shuffle偄偄姶偠丅

2006/11/04 (Sat)
丂侾俀帪婲偒丅嶐擔偺嵭僙僢僩傾僢僾偺懕偒丅傾僯儊偺姶憐彂偒丅ATOK偑
僶僇丅侾侽寧偼僟儊僟儊偩偭偨乧乧丅


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

2006/10/29 (Sun)
http://d.hatena.ne.jp/kab_studio/20061029
婲偒偨乕丅
[KAB-studio]傉傜偲傢捛壛丅
[KAB-studio][傎偲偼乕]傎偲偼乕奜揱俁 P.77
[傾僯儊]乽夊乿 戞31榖乽栰朷偺戙彏乿
[傾僯儊]偍偹偑偄儅僀儊儘僨傿乣偔傞偔傞僔儍僢僼儖両乣 
丂戞31榖乽傕偆堦搙梮傟偨傜僀僀僫両乿
[傾僯儊]壋彈偼偍巓偝傑偵楒偟偰傞 戞4榖乽奐偐偢偺斷偺柊傝昉乿
[傾僯儊]偔偠傃偒傾儞僶儔儞僗 戞4榖乽偵偪傛偆傃偵偁偦傏偆偐丅5揰乿
[傾僯儊]Gift 乣eternal rainbow乣 戞4榖乽偡傟堘偆壞乿

2006/10/30 (Mon)
http://d.hatena.ne.jp/kab_studio/20061030
婲偒乧乧
[link]偁偺抯榖寲壾儔僕僆CD偑Amazon儔儞僉儞僌1埵両
[link]僕僆儞僌儞偑俀楢攅
[昦婥帯椕]崟捾
[悈塲僟僀僄僢僩]10寧13夞栚
[偆偨傢傟傞傕偺PS2]僩僂僇偑拠娫偵丅
[傾僯儊]嬥怓偺僐儖僟 戞5榖乽棁懌偺償傿償儔乕僩乿
[傾僯儊]栭柧偗慜傛傝椱棡怓側 Crescent Love 戞4榖乽愴偆両 偍昉條乿
[傾僯儊]僊儍儔僋僔乕僄儞僕僃傞乣傫 戞5榖乽榓夝両戝恖偺傾儖僐乕傞乣傫乿

2006/10/31 (Tue)
http://d.hatena.ne.jp/kab_studio/20061031
婲偒偨乧乧丅
[憰旛]廋棟偵弌偟偨僯儞僥儞僪乕DS Lite偑擟揤摪偵摓拝丅
[悈塲僟僀僄僢僩]10寧14夞栚
[憰旛]怴iPod shuffle弌壸姰椆両両両
[傾僯儊]BLACK BLOOD BROTHERS 戞5榖乽宱嵪摿暿夝曻嬫乿
[傾僯儊]N丒H丒K偵傛偆偙偦両 戞17榖乽偼傄偹偡偵傛偆偙偦両乿
[傾僯儊]Pumpkin Scissors 戞5榖乽偁偝偼偐側幰払乿

2006/11/01 (Wed)
http://d.hatena.ne.jp/kab_studio/20061101
婲偒偨丅
[憰旛][link]OCR柤巋儕乕僟乕婡擻搵嵹劅劅W-ZERO3[es]偺怴僶乕僕儑儞搊応
[憰旛][link]W-ZERO3[es]愱梡偺儚儞僙僌僠儏乕僫乕丄12寧5擔敪攧
[link]Wii斉僛儖僟偺揱愢 僩儚僀儔僀僩僾儕儞僙僗
[怘]媑栰壠偺媿槬
僾乕儖媥傓丅
[傾僯儊]DEATH NOTE 戞5榖乽嬱堷乿
[傾僯儊]僽儔僢僋儔僌乕儞 戞17榖乽The Roanapur Freakshow Circus乿
[傾僯儊]僱僊傑両丠 
丂戞5榖乽搶嫗偼晘嬥楃嬥崅偄側偀備乕偰壖宊栺偭偰偦偆偄偆堄枴偪偑偆傫丠乿

2006/11/02 (Thu)
http://d.hatena.ne.jp/kab_studio/20061102
婲偒偨丅
[偆偨傢傟傞傕偺PS2]偪傚偭偲偢偮丅
[傾僯儊]憈岝偺僗僩儗僀儞 戞1榖乽愨朷偺慜憈嬋乿(怴)
[傾僯儊]憈岝偺僗僩儗僀儞 戞2榖乽弌埀偄乿
[傾僯儊]晲憰楤嬥 戞5榖乽庣傞傋偒恖偺偨傔偵乿

2006/11/03 (Fri)
http://d.hatena.ne.jp/kab_studio/20061103
偍丄婲偒乧乧丅
[C71]搤僐儈棊偪傑偟偨丅
[傾僯儊]嵤塤崙暔岅偺悽奅(1) 乽嵤塤崙傊傛偆偙偦乿
[傾僯儊]偍偲偓廵巑 愒偢偒傫 戞19榖乽儉乕儞儔僀僩偠傘乣偡偅偂乣乿
[傾僯儊]傆偟偓惎偺仚傆偨偛昉 Gyu! 
丂戞32榖乽僺儏僺儏偲僉儏僉儏仚弶傔偰偺偍巊偄乿
[傾僯儊]僐乕僪僊傾僗 斀媡偺儖儖乕僔儏 戞5榖乽峜彈偲杺彈乿

2006/11/04 (Sat)
http://d.hatena.ne.jp/kab_studio/20061104
揙栭偟偨乮敋乯丅
[憰旛]iPod shuffle棃偨両両両両両
[憰旛]僋儕僢僾宆iPod shuffle僼傽乕僗僩僀儞僾儗僢僔儑儞丅
[悈塲僟僀僄僢僩]11寧1夞栚
[傾僯儊]偁偝偭偰偺曽岦丅 戞5榖乽婣傞偲偙傠乿
[傾僯儊]偡傕傕傕傕傕傕乣抧忋嵟嫮偺儓儊乣 戞5榖乽寖撍両傕傕巕vs偄傠偼乿


////////////////////////////////////////////////////////////////////
// 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

仭捛壛丒峏怴扨岅

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


////////////////////////////////////////////////////////////////////
仭仩乽妝揤僇乕僪乿擖夛偱傕傟側偔2,000億僀儞僩僾儗僛儞僩仩仭
<URL偼偙偪傜傊>
http://af1.mag2.com/m/af/0000008658/001/s00000002033002/012
僉儍儞儁乕儞婜娫拞擖夛偝傟偨曽偵偼傕傟側偔妝揤巗応偱巊偊傞2,000墌暘偺
億僀儞僩僾儗僛儞僩両僇乕僪棙梡偱挋傔偨億僀儞僩偼1億僀儞僩亖1墌偲偟偰
妝揤巗応偱巊偊傑偡両擭夛旓丒擖夛嬥偼傕偪傠傫塱擭柍椏偱偡丅
////////////////////////////////////////////////////////////////////
// #pragma twice
http://www.kab-studio.biz/Programing/PragmaTwice/index.html

丂Version 17.26
僗儅乕僩億僀儞僞偺帺摦夝曻

乽偦傟偱偼慜夞偺懕偒丅慜夞偼丄乿

    CSmartPointer cSmartPointer = GetPrinterInstance( DEBUG_PRINTER );

乽偙偺塃懁偺 GetPrinterInstance() 娭悢偑丄 return 偱曉偡曄悢偵抲偒姺
傢偭偰埲壓偺傛偆偵側偭偰丄乿

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

亀偙偺帪偼丄傆偨偮偺 cSmartPointer 偑傂偲偮偺 CDebugPrinter 僋儔僗偺
曄悢偺傾僪儗僗傪帩偭偰傞傫偩傛偹亁
乽偦偆丄偙偆側傝傑偡乿

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

乽偦偺偁偲丄塃懁偺 cSmartPointer 偼娭悢偺栠傝抣側偺偱側偔側傞偨傔丄
埲壓偺傛偆偵側傝傑偡乿

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

乽偙偙傑偱偑埲壓偺峴乿

    CSmartPointer cSmartPointer = GetPrinterInstance( DEBUG_PRINTER );

亀偙偺1峴偵偙傫側擹偄撪梕偑乧乧亁
乽偙偺 cSmartPointer 曄悢撪偵偁傞乹CDebugPrinter 僋儔僗偺曄悢乺偺
傾僪儗僗偼 GetPointer() 儊儞僶娭悢偱庢摼偱偒傞偺偱丄埲壓偺傛偆偵庢摼
偟偰丄偦偙偐傜儊儞僶娭悢傪屇傃弌偡偙偲偑偱偒傑偡乿

    // 弌椡偟傑偡丅
    cSmartPointer.GetPointer()->Output( "偁偄偆偊偍\n" );

乽偙偙丄億儕儌乕僼傿僘儉偟偰偄傞偐傜偹乿
亀偁丄偦偐丄 Version 17.20 ( No.375 ) 偺偙偙偲摨偠側傫偩傕傫偹亁

    // 弌椡偟傑偡丅
    pcPrinter->Output( "偁偄偆偊偍\n" );

乽 GetPointer() 儊儞僶娭悢偺栠傝抣偼 CPrinter 僋儔僗偺億僀儞僞偩偐傜乿
亀偩偗偳傾僪儗僗偼 CDebugPrinter 僋儔僗偺曄悢偺偱丄 
Output() 儊儞僶娭悢偼壖憐娭悢偱僆乕僶乕儔僀僪偝傟偰傞偐傜丄偭偰偙偲
偹亁
乽偦偆偄偆偙偲丅偙偆傗偭偰拞偵曐懚偟偰偁傞億僀儞僞傪庢摼偱偒傞偙偲丄
億儕儌乕僼傿僘儉偝傟傞偐傜偙偦丄偙偺僗儅乕僩億僀儞僞傪巊偭偰 
Version 17.20 ( No.375 ) 偲摨偠偙偲偑偱偒傞傫偩偐傜偹乿
亀偦偺偨傔偺僗儅乕僩億僀儞僞側傫偩傕傫偹亁
乽偦偆偄偆偙偲丅偱丄壛偊偰僗儅乕僩億僀儞僞偵偼乹帺摦揑偵 delete 偡傞
婡擻乺偑旛傢偭偰偄傑偡乿
亀偦傟偑僗儅乕僩億僀儞僞偺栚揑丄側傫偩傛偹亁
乽偦偆丅偙傟偐傜偦偺巇慻傒傪愢柧偟傑偡丅師偺峴傪尒偰偔偩偝偄乿

    // 師偵僟僀傾儘僌梡傪庴偗庢傝傑偡丅
    cSmartPointer = GetPrinterInstance( DLG_PRINTER );

亀偙傟偭偰嵟弶偵庢摼偟偨偲偙傠偲傎偲傫偳摨偠偹亁
乽偆傫丄傎偲傫偳摨偠丅傑偢 GetPrinterInstance() 娭悢傪屇傃弌偟傑偡丅
偨偩丄崱搙偼 DLG_PRINTER 傪搉偟偰偄傑偡乿
亀偦偆偡傞偲 CDlgPrinter 僋儔僗偺曄悢傪嶌傞傫偩傛偹亁
乽偦偆丄 DLG_PRINTER 傪搉偡偙偲偱埲壓偺売強偑幚峴偝傟傑偡乿

// 乽弌椡乿僋儔僗傪曉偡娭悢丅
// 堷悢偑 DEBUG_PRINTER 側傜 CDebugPrinter 僋儔僗偺億僀儞僞傪丄
// DLG_PRINTER 側傜 CDlgPrinter 僋儔僗偺億僀儞僞傪曉偟傑偡丅
CSmartPointer GetPrinterInstance( int p_iFlag )
{
// 乮棯乯
    // else
    CSmartPointer cSmartPointer( new CDlgPrinter() );
    return cSmartPointer;
}

亀偙傟偑僗儅乕僩億僀儞僞偺 cSmartPointer 曄悢偵搉偝傟偰曉偝傟傞丄偲亁
乽恾偵偡傞偲偙偆側傝傑偡乿

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

亀偙傟偑栠傝抣偱曉偝傟傞偲丄娭悢偲抲偒姺傢傞偐傜亁

    cSmartPointer = GetPrinterInstance( DLG_PRINTER );

亀偑亁

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

亀偭偰抲偒姺傢傞傫偩傛偹亁
乽偦偆偄偆偙偲丅偱丄偙偙偱廳梫側偺偼丄嵍偑偡偱偵嶌傜傟偰偄傞 
cSmartPointer 曄悢偩偭偰偄偆偙偲丅偝偭偒偺晹暘偲斾妑偟偰傒傛偆偐乿

                     伀曄悢傪愰尵偟偰偄傞乮怴偟偔嶌偭偰偄傞乯
    CSmartPointer cSmartPointer = GetPrinterInstance( DEBUG_PRINTER );
...
         伀偡偱偵懚嵼偟偰偄傞
    cSmartPointer = GetPrinterInstance( DLG_PRINTER );

乽偦偟偰丄 偙偺 cSmartPointer 偼乹CDebugPrinter 僋儔僗偺曄悢乺偺
傾僪儗僗傪帩偭偰傞丄偭偰偙偲傪巚偄弌偟偰乿
亀偦偩丄偭偰偙偲偼乧乧亁

    CDebugPrinter 僋儔僗偺曄悢偺傾僪儗僗傪帩偮
          伀             伀CDlgPrinter 僋儔僗偺曄悢偺傾僪儗僗傪帩偮
    cSmartPointer = cSmartPointer;
         (嵍)            (塃)

乽偮傑傝丄偙偺嵍偲塃偲偱偼丄帩偭偰偄傞傾僪儗僗偑堘偆傢偗偱偡乿
亀偦偆側傞偲乧乧丠亁
乽嵍偑帩偭偰偄傞傾僪儗僗偑丄塃偑帩偭偰偄傞傾僪儗僗偱抲偒姺傢傝傑偡丅
嬶懱揑偵偼 = 墘嶼巕偺僆乕僶乕儘乕僪儊儞僶娭悢偑屇傃弌偝傟傑偡乿

    // = 墘嶼巕傪僆乕僶乕儘乕僪偟傑偡丅
    CSmartPointer &operator =( const CSmartPointer &p_rcSmartPointer )
    {
        if( m_pcPrinter != p_rcSmartPointer.m_pcPrinter )
        {
            // 懳徾億僀儞僞偺傾僪儗僗偑堘偆応崌偼
            // 嶲徠僇僂儞僞乕傪尭傜偟傑偡丅
            Release();
        }

        // 僐僺乕偟傑偡丅
        m_pcPrinter = p_rcSmartPointer.m_pcPrinter;
        m_piRefCounter = p_rcSmartPointer.m_piRefCounter;
        // 嶲徠僇僂儞僞乕傪憹傗偟傑偡丅
        AddRef();

        return *this;
    }

亀偆偋丄偙傫側偺梡堄偟偰偁偭偨傫偩亁
乽偙偺儊儞僶娭悢偼丄傑偢嵍塃偺傾僪儗僗傪斾妑偟偰丄堎側傞応崌偵偼
Release() 儊儞僶娭悢傪屇傃弌偟偰嶲徠僇僂儞僞乕傪尭傜偟傑偡乿
亀偙偙偱偼傾僪儗僗偑堘偆偐傜屇傃弌偝傟傞偹亁
乽偦偙偱丄 Release() 儊儞僶娭悢傪傕偆堦搙尒偰傒傑偡乿

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

乽偙偙偱嶲徠僇僂儞僞乕傪 1 尭傜偟傑偡丅偡傞偲丄愭傎偳偺恾偩偲埲壓偺
傛偆偵側傝傑偡乿


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

亀偁丄嶲徠僇僂儞僞乕偑0偵側偭偨両両丂偭偰偙偲偼乧乧亁
乽偦偺師偺 if 偺忦審偵崌偆偐傜丄 delete 偝傟傑偡乿

            delete m_pcPrinter;
            delete m_piRefCounter;

乽偮傑傝丄偙偺傆偨偮偺曄悢偑 delete 偝傟傞偲偄偆傢偗偱偡両乿


                                  劇 CDebugPrinter 僋儔僗偺曄悢 劅劉
                     仺           劆Output()                      劆
      椉曽偺曄悢偑                劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊
      delete偝傟傑偡               劇 int 宆曄悢 劉      仾
                     仺      仺仺仺劆 0          劆      仾
                            仾     劋劅劅劅劅劅劅劊      仾
劇 cSmartPointer(嵍)劅劅劉  仾                           仾
劆m_piRefCounter 仺仺仺仺仺仺                            仾
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劋劅劅劅劅劅劅劅劅劅劅劅劊 

亀乧乧偭偰偙偲偼丄偮傑傝偙傟偑乹僗儅乕僩億僀儞僞偑帺摦揑偵 delete 
偟偰偔傟偨乺偭偰偙偲乧乧丠亁
乽偦偆偄偆偙偲両丂偲偄偆傢偗偱師夞偵懕偔両乿

/*
    Preview Next Story!
*/
亀傗丄傗偭偲僗儅乕僩億僀儞僞偺栚揑傑偱棃偨偹乧乧亁
乽偙偺帺摦夝曻偑偱偒側偄偲僗儅乕僩億僀儞僞偺堄枴偑側偄偐傜偹乿
亀乧乧偁傟丄偱傕懕偔丠亁
乽僗儅乕僩億僀儞僞偼傕偭偲傕偭偲暋嶨側傫偱偡乿
亀偘亁
乽偲偄偆傢偗偱師夞乿
亙 Version 17.27 僗儅乕僩億僀儞僞偺帺摦夝曻丄偺懕偒 亜
亀偵偮偯偔両亁
乽僗儅乕僩億僀儞僞偼偙偙偐傜偑偍傕偟傠偄傫偱偡乿
亀乧乧傕偆傗傔偵偟側偄丠亁


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

丒偙偺儊乕儖傪曉怣偟側偄偱偔偩偝偄丅
丒偛堄尒丒偛婓朷丒偛姶憐偼[僠儑乕晛捠側擔婰]傛傝偍憲傝偔偩偝偄丅
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
*/
////////////////////////////////////////////////////////////////////

