////////////////////////////////////////////////////////////////////
SEO懳嶔偼両
http://af1.mag2.com/m/af/0000008658/001/s00000004680002/021
////////////////////////////////////////////////////////////////////
/*

    KAB-studio.h


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

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

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

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

2006/11/13 (Mon)
丂#pragma twice 儂乕儉儁乕僕斉偵傾乕僇僀僽捛壛両
17.12 億儕儌乕僼傿僘儉両
17.13 壖憐娭悢偲僆乕僶乕儔僀僪
[ #pragma twice ]
http://www.kab-studio.biz/Programing/PragmaTwice/index.html


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

2006/11/05 (Sun)
丂侾侾帪婲偒丅傎偲偼乕奜揱俁偺僐儊儞僩丅栭偼傉傜偲傢傪俁榖丅崱擔偐傜
係帪怮侾侽帪婲偒丅憗婲偒偟傛偆偲偟偰偨棟桼丅

2006/11/06 (Mon)
丂嶐擔偼係帪傑偱偆偨傢傟丅崱擔偼侾侽帪夁偓婲偒丅崱擔傕偆偨傢傟偽偭偐
偟偰偨丅峆椺偼偰側僾儗僛儞僩奊丅偁偲僾儘僌儔儈儞僌偟偰僾乕儖傊丅

2006/11/07 (Tue)
丂係帪傑偱偆偨傢傟偟偰侾侽帪婲偒丅堓偵僟儊乕僕偑丅栭傑偱傎偲偼乕奜揱俁
偺僱乕儉愗傝丅栭偼僾乕儖偱侾丏俆僉儘丅

2006/11/08 (Wed)
丂係帪傑偱傎偲偼乕奜揱俁偺僱乕儉愗傝偲傾僯儊偺姶憐彂偒丅係帪怮侾侽帪婲
偒偼偆傑偔偄偔丅傉傜偲傢係榖彂偔丅栭偼僾乕儖丅

2006/11/09 (Thu)
丂栭偼偆偨傢傟丅侾侽帪婲偒丅堓偑乧乧丅偱傕Machician梡岅捛壛偲偐丅偁偲
偼拫怮偟偨傝偛偼傫怘傋偨傝傾僕傾僔儕乕僘娤偨傝丅

2006/11/10 (Fri)
丂婲偒偰偡偖曕偄偰墶昹傊丅iPod shuffle揹抮愗傟傞丅iPod shuffle廩揹梡
僐儞僙儞僩偲偐傪峸擖丅僯儞僥儞僪乕DS Lite偑廋棟偐傜婣偭偰偒偨丅偁偲偼
僂僀僀儗DS偲偐偟偰埲忋丅

2006/11/11 (Sat)
丂侾侽帪敿婲偒丅恏偄傕偺傪怘傋偰僟僂儞丅梉曽偐傜傾僯儊娤偰姶憐彂偄偰
偐傇僿僢僟乕偺弨旛丅梋桾偁傞棟桼丅


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

2006/11/05 (Sun)
http://d.hatena.ne.jp/kab_studio/20061105
婲偒偨乕丅
[KAB-studio]傉傜偲傢捛壛丅
[KAB-studio]KAB-studio.h弅嶞斉峏怴
[KAB-studio][傎偲偼乕]傎偲偼乕奜揱俁 P.78
[傾僯儊]乽夊乿 戞32榖乽崙壠偺巚榝乿
[傾僯儊]偍偹偑偄儅僀儊儘僨傿乣偔傞偔傞僔儍僢僼儖両乣 
丂戞32榖乽僇僢僐椙偔側傟偨傜僀僀偧側両乿
[傾僯儊]壋彈偼偍巓偝傑偵楒偟偰傞 戞5榖乽恀栭拞偺嫵夛乿
[傾僯儊]偔偠傃偒傾儞僶儔儞僗 
丂戞5榖乽偲傕偩偪偑偐傢傞偐傕偟傟側偄丅1揰乿
[傾僯儊]Gift 乣eternal rainbow乣 戞5榖乽暵偞偝傟偨応強偱乿

2006/11/06 (Mon)
http://d.hatena.ne.jp/kab_studio/20061106
婲偒偨丅
[悈塲僟僀僄僢僩]11寧2夞栚
[奊]偼偰側僷乕僇乕梸偟偄両
[C71]摉棊捠抦撏偒傑偟偨丅
[偆偨傢傟傞傕偺PS2]僐儞僩嶰枂丅
[傾僯儊]嬥怓偺僐儖僟 戞6榖乽嫻憶偓偺億儖僇乿
[傾僯儊]栭柧偗慜傛傝椱棡怓側 Crescent Love 
丂戞5榖乽偍昉條 柍恖搰昚棳婰乿
[傾僯儊]僊儍儔僋僔乕僄儞僕僃傞乣傫 戞6榖乽抋惗両怴恖傾僀僪傞乣傫乿

2006/11/07 (Tue)
http://d.hatena.ne.jp/kab_studio/20061107
婲偒偨丅
[悈塲僟僀僄僢僩]11寧3夞栚
[傾僯儊]BLACK BLOOD BROTHERS 戞6榖乽栭夛乿
[傾僯儊]N丒H丒K偵傛偆偙偦両 戞18榖乽僲乕僼儏乕僠儍乕偵傛偆偙偦両乿
[傾僯儊]Pumpkin Scissors 戞6榖乽朙閌側帪娫乿

2006/11/08 (Wed)
http://d.hatena.ne.jp/kab_studio/20061108
婲偒偨丅
[攦][憰旛]僕儗僢僩僼儏乕僕儑儞僷儚乕
[攦]Amazon偱攦偭偨傕偺丅
[悈塲僟僀僄僢僩]11寧4夞栚
[傾僯儊]DEATH NOTE 戞6榖乽抅傃乿
[傾僯儊]僽儔僢僋儔僌乕儞 戞18榖乽Mr.Benny's Good Fortune乿
[傾僯儊]僱僊傑両丠 戞6榖乽偍偱偙偐傎偭傌偱嫋偟偰丠乿

2006/11/09 (Thu)
http://d.hatena.ne.jp/kab_studio/20061109
婲偒偨丅
[憰旛]戞2悽戙iPod shuffle僙僇儞僪僀儞僾儗僢僔儑儞
[憰旛]廋棟偵弌偟偨僯儞僥儞僪乕DS Lite偑擟揤摪偐傜敪憲姰椆丅
[KAB-studio][Machician]梡岅乽僒僫僣僇乿捛壛丅
僾乕儖偼偍媥傒丅
[偒傜傜]傑傫偑僞僀儉偒傜傜 2006擭12寧崋
[link]僾儗僀僗僥乕僔儑儞3傪攦偆偨傔偵僞僀儉僗儕僢僾
[傾僯儊]憈岝偺僗僩儗僀儞 戞3榖乽垷岝懍偺埆柌乿
[傾僯儊]晲憰楤嬥 戞6榖乽崟巰偺挶乿

2006/11/10 (Fri)
http://d.hatena.ne.jp/kab_studio/20061110
婲偒偨丅
墶昹峴偭偰偔傞丅
婣偭偰偒偨丅
[憰旛]僯儞僥儞僪乕DS Lite廋棟姰椆乧乧丠
[攦]I乫ve in BUDOKAN2005 乣COMPLETE EDIT乣偵岎姺偟偰偒傑偟偨丅
[攦][憰旛]iPod shuffle廩揹梡僐儞僙儞僩
[怘]僇儗乕僔儑僢僾GOLD RUSH 搨梘偘僇儗乕
[攦]僂僀僀儗DS
[攦]攦偭偰偒偨僐儈僢僋僗偲偐丅
[傾僯儊]偁偝偭偰偺曽岦丅 戞6榖乽壞偺塱墦乿
[傾僯儊]偡傕傕傕傕傕傕乣抧忋嵟嫮偺儓儊乣 戞6榖乽屨偺巋媞丄尰傞両乿

2006/11/11 (Sat)
http://d.hatena.ne.jp/kab_studio/20061111
婲偒偨丅
[憰旛]僗儅僀儖僉僢僘 24帪娫僞僀儅乕僐儞僙儞僩
[link]僾儗僗僥3敪攧擔偵傒傞Wii峸擖傊偺揥朷丅
[link]12RIVEN -the 兊climinal of integral-
[傾僯儊]偍偲偓廵巑 愒偢偒傫 戞20榖乽僾儕儞僙僗愒偢偒傫乿
[傾僯儊]傆偟偓惎偺仚傆偨偛昉 Gyu! 
丂戞33榖乽柤扵掋傆偨偛昉仚斊恖偼扤偩!?乿
[傾僯儊]僐乕僪僊傾僗 斀媡偺儖儖乕僔儏 戞6榖乽扗傢傟偨壖柺乿


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

仭捛壛丒峏怴扨岅

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


////////////////////////////////////////////////////////////////////
SEO懳嶔偼両
http://af1.mag2.com/m/af/0000008658/001/s00000004680002/021
////////////////////////////////////////////////////////////////////
// #pragma twice
http://www.kab-studio.biz/Programing/PragmaTwice/index.html

丂Version 17.27
僗儅乕僩億僀儞僞偺帺摦夝曻丄偺懕偒

乽偱偼慜夞偺懕偒偐傜丅傑偢偙偺峴偺榖偱偟偨乿

    cSmartPointer = GetPrinterInstance( DLG_PRINTER );

亀塃懁偺 GetPrinterInstance() 娭悢傕僗儅乕僩億僀儞僞傪曉偡傫偩傛偹亁
乽偦偆丄偩偐傜偙偺娭悢傪屇傃弌偟偰偄傞晹暘偑栠傝抣偵抲偒姺傢傝傑偡乿

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

亀偱傕丄嵍塃偺帩偭偰傞傾僪儗僗偑堘偆丄偲亁
乽偙偺偲偒丄 = 墘嶼巕偺僆乕僶乕儘乕僪儊儞僶娭悢偑屇傃弌偝傟傑偡乿

    // = 墘嶼巕傪僆乕僶乕儘乕僪偟傑偡丅
    CSmartPointer &operator =( const CSmartPointer &p_rcSmartPointer )

乽偙偺拞偱傾僪儗僗偑堎側傞応崌偵偼 Release() 儊儞僶娭悢傪屇傃弌偡傛
偆偵偟偰偁傝傑偡丅偱丄 Release() 儊儞僶娭悢偼丄嶲徠僇僂儞僞乕偑0偵
側偭偨傜帩偭偰偄傞曄悢傪 delete 偟傑偡乿

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

亀偮傑傝偙傟偑丄乹僗儅乕僩億僀儞僞偑帺摦揑偵 delete 偟偰偔傟偨乺偭偰
偙偲側傫偩傛偹亁
乽偦偆偄偆偙偲丅僗儅乕僩億僀儞僞偺嵟戝偺儊儕僢僩偼乹傾僪儗僗傪扤傕
帩偭偰偄側偐偭偨傜 delete 偡傞乺偭偰偄偆婡擻傪帩偮偙偲丅偦偆偡傞偙偲
偱丄揔愗側僞僀儈儞僌偱 delete 偝傟傞傢偗偱偡乿
亀傑偩巊偭偰偄傞帪偵 delete 偡傞偙偲傕側偄偟丄 delete 偟朰傟偰
儊儌儕儕乕僋偡傞偙偲傕側偄丅昁梫側偔側偭偨傜偡偖偵 delete 偡傞丄偭偰
傢偗偹亁
乽偦偆偄偆偙偲丅僗儅乕僩億僀儞僞傪巊梡偡傞偙偲偱乹巊傢側偔側偭偨傜 
delete 偡傞乺偭偰偄偆張棟偑帺摦揑偵偱偒傞傢偗偱偡乿
亀側傞傎偳丄妋偐偵曋棙乧乧亁
乽偝偰丄偙傟偱 cSmartPointer 曄悢(嵍)偑帩偮傆偨偮偺儊儞僶曄悢偑
嬻偒傑偟偨丅偙偙偵丄 cSmartPointer 曄悢(塃)偺傾僪儗僗傪僐僺乕偟傑偡乿

    // = 墘嶼巕傪僆乕僶乕儘乕僪偟傑偡丅
    CSmartPointer &operator =( const CSmartPointer &p_rcSmartPointer )
    {
// (棯)
        // 僐僺乕偟傑偡丅
        m_pcPrinter = p_rcSmartPointer.m_pcPrinter;
        m_piRefCounter = p_rcSmartPointer.m_piRefCounter;
        // 嶲徠僇僂儞僞乕傪憹傗偟傑偡丅
        AddRef();

乽傾僪儗僗傪僐僺乕偟偰 AddRef() 儊儞僶娭悢傪屇傃弌偡偙偲偱丄埲壓偺傛
偆偵傆偨偮偺僗儅乕僩億僀儞僞偐傜傂偲偮偺乹 CDlgPrinter 僋儔僗偺曄悢乺
偺傾僪儗僗傪帩偮偙偲偵側傞傢偗偱偡乿

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

亀慜夞偺嵟弶偲摨偠忬懺丄偭偰偙偲偹亁
乽偦偆偄偆偙偲丅偙偺帪揰偱丄嵍塃摨偠傾僪儗僗傪帩偮傢偗偱偡乿

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

亀嵍偺曽偺偑嶍彍偝傟偰丄塃偺偵抲偒姺傢偭偨傢偗偹乧乧亁
乽偱丄摨偠傛偆偵丄 cSmartPointer(塃) 偼娭悢偺栠傝抣偩偐傜乿
亀側偔側偭偰僨僗僩儔僋僞偑屇傃弌偝傟傞傢偗偹亁
乽偦偟偰 Release() 儊儞僶娭悢偑屇傃弌偝傟偰嶲徠僇僂儞僞乕偑1尭傜偝傟
傑偡丅偩偐傜恾偵偡傞偲偙偆側傝傑偡乿

劇 cSmartPointer(嵍)劅劅劉 
劆m_piRefCounter 仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺仺
劆m_pcPrinter 仺仺仺仺仺仺仺仺仺仺仺仺仺                         伀
劋劅劅劅劅劅劅劅劅劅劅劅劊             伀                        伀
                                       伀                        伀
                                劇 CDlgPrinter 僋儔僗偺曄悢 劅劉 伀
                                劆Output()                    劆 伀
      乮側偔側偭偨乯            劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊 伀
                                 劇 int 宆曄悢 劉                伀
                                 劆 1仼尭偭偨  劆仼仼仼仼仼仼仼仼
                                 劋劅劅劅劅劅劅劊

乽偙偆偟偰丄 cSmartPointer(嵍) 偑帩偮傾僪儗僗偑乹 CDlgPrinter 僋儔僗
偺曄悢乺偺傾僪儗僗偵抲偒姺傢傝傑偟偨乿
亀偍偍亁
乽側偺偱丄師偺峴偱 GetPointer() 儊儞僶娭悢傪屇傃弌偡偲丄偙偺
乹 CDlgPrinter 僋儔僗偺曄悢乺偺傾僪儗僗偑曉偝傟傑偡乿

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

亀慜夞偲摨偠偱丄偙偙偱億儕儌乕僼傿僘儉偑婡擻偟偰傞傢偗偹亁
乽偦偆偄偆偙偲丅 GetPointer() 儊儞僶娭悢偺栠傝抣偺宆偼 CPrinter 僋儔僗
偺億僀儞僞偩偗偳丄幚嵺偵偼偦偺攈惗僋儔僗偺 CDlgPrinter 僋儔僗偺
傾僪儗僗偑曉偝傟傞丄偲偄偆傢偗偱偡乿
亀偱丄 Output() 儊儞僶娭悢偼壖憐娭悢偱僆乕僶乕儔僀僪偝傟偰傞偐傜偦偭
偪偑屇傃弌偝傟傞丄偲丅側傞傎偳偹乕亁
乽偝偰丄嵟屻偺掲傔乿
亀偁傟丠丂偙傟偱廔傢傝偠傖側偄偺丠亁
乽傑偩巆偭偰傞傛丅崱 cSmartPointer 曄悢偑帩偭偰偄傞丄
乹 CDlgPrinter 僋儔僗偺曄悢乺偲嶲徠僇僂儞僞乕偺乹 int 宆曄悢乺傪
delete 偟側偄偲乿
亀偁丄偦偐丄偦傟偟側偄偲儊儌儕儕乕僋偟偪傖偆偹丅偱傕丄偝偭偒偼 
= 墘嶼巕傪僆乕僶乕儘乕僪偟偰偄偰丄偦傟偱 = 偱戙擖偟偨偐傜偦傟偑屇偽
傟偨偗偳丄崱搙偼偳偆偡傞偺丠亁
乽崱幚峴偟偰傞 WinMain() 娭悢傪傕偆堦搙尒偰傒傛偆偐乿

int WINAPI WinMain
    ( HINSTANCE p_hInstance
    , HINSTANCE p_hPrevInstance
    , LPSTR p_pchCmdLine
    , int p_iCmdShow
    )
{
    // 弌椡梡偵丄 CSmartPointer 僋儔僗傪庴偗庢傝傑偡丅
    // 傑偢僨僶僢僌梡傪庴偗庢傝傑偡丅
    CSmartPointer cSmartPointer = GetPrinterInstance( DEBUG_PRINTER );
    // 弌椡偟傑偡丅
    cSmartPointer.GetPointer()->Output( "偁偄偆偊偍\n" );

    // 師偵僟僀傾儘僌梡傪庴偗庢傝傑偡丅
    cSmartPointer = GetPrinterInstance( DLG_PRINTER );
    // 弌椡偟傑偡丅
    cSmartPointer.GetPointer()->Output( "偁偄偆偊偍\n" );
    仼偙偙傑偱棃偨丅
    return 0;
}

乽偙傟偐傜 WinMain() 娭悢偐傜敳偗傑偡丅偡傞偲 cSmartPointer 曄悢偼丠乿
亀側偔側傞乧乧偦偐丄僨僗僩儔僋僞偑屇偽傟傞両両亁
乽偦偆偄偆偙偲丅僋儔僗宆曄悢偑側偔側傞偲偒偵偼僨僗僩儔僋僞偑屇傃弌偝
傟傑偡乿
亀偭偰偙偲偼丄 GetPrinterInstance() 娭悢偐傜敳偗傞偲偒偲摨偠偱丄
僨僗僩儔僋僞偑屇傃弌偝傟偰丄偝傜偵 Release() 儊儞僶娭悢偑屇傃弌偝傟
傞偲亁

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

乽偙偺儊儞僶娭悢偱偼丄傑偢嶲徠僇僂儞僞乕偑傂偲偮尭傝傑偡乿

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

亀嶲徠僇僂儞僞乕偑 0 偵側偭偨両両亁
乽偲偄偆偙偲偼丄偦偺壓偺 if 偺拞偵擖傞偺偱 delete 偑幚峴偝傟傑偡乿

            delete m_pcPrinter;
            delete m_piRefCounter;

亀偱丄慜夞偲摨偠傛偆偵 CDlgPrinter 僋儔僗偺曄悢偲 int 宆曄悢偑夝曻
偝傟傞傢偗偹亁

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

乽偲偄偆傢偗偱丄 WinMain() 娭悢偐傜敳偗偨偲偒偵偼丄 new 偱嶌傜傟偨
傆偨偮偺曄悢偼偪傖傫偲 delete 偝傟偰丄儊儌儕儕乕僋偼婲偒側偄丄偲偄偆
傢偗偱偡乿
亀偡偛乧乧亁

/*
    Preview Next Story!
*/
亀傕偆摢偑偙傫偑傜偑偭偪傖偆両亁
乽傑偀丄偙傟偼嶌傞偺傕巊偆偺傕擄偟偄偐傜偹乿
亀乧乧巊偆偔傜偄側傜側傫偲偐側傜側偄丠亁
乽幚偼巊偆帪傕拲堄偑昁梫側傫偱偡乿
亀偊偊乕両丠亁
乽偲偄偆傢偗偱師夞乿
亙 Version 17.28 僗儅乕僩億僀儞僞偺傑偲傔 亜
亀偵偮偯偔両亁
乽偙偆偄偆墱偺怺偝偑柺敀偔側偭偰偔傞偲乧乧乿
亀偦傟儅僝傛愨懳両亁


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

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

