<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CJH的儲思盆 - 技術.管理.思考</title>
	<atom:link href="http://mind.cjh.cc/feed" rel="self" type="application/rss+xml" />
	<link>http://mind.cjh.cc</link>
	<description>小 工 程 師 職 場 打 滾 記 事</description>
	<lastBuildDate>Sun, 19 Apr 2009 09:38:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SQL SERVER 2005 交易式複寫小研究</title>
		<link>http://mind.cjh.cc/post-68.html</link>
		<comments>http://mind.cjh.cc/post-68.html#comments</comments>
		<pubDate>Sun, 19 Apr 2009 09:38:48 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[合併式複寫]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=68</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>版本:SQL SERVER 2005-sp3-4035</p>
<p>在「已發布」的複寫資料表內，直接使用右鍵-&gt;設計(開啟GUI介面)，改完之後直接儲存</p>
<ol>
<li>新增欄位(接在rowguid資料行之後)：可成功儲存，並會自動發佈</li>
<li>刪除欄位：可成功儲存，並會自動發佈</li>
<li>移動欄位順序：無法儲存，失敗</li>
<li>bug：刪除欄位後，會把「自動計算」的資料行設為未發布複寫，但是新增欄位的動作不會有此狀況</li>
</ol>
<p>[已發布]的函數，右鍵-&gt;修改</p>
<ol>
<li>修改內容：如果此函數沒有被其他資料表使用(計算資料行)，則可成功套用</li>
<li>修改內容(已被資料表使用)：無法執行，會有錯誤訊息</li>
<li>刪除：會告知已被用於複寫，無法刪除</li>
</ol>
<p>發行項屬性</p>
<ol>
<li>新增/取消勾選項目：需要重新建立快照集，但不用重新初始化</li>
<li>取消勾選「已發布」的資料表內的「欄位」：需要重新建立快照集+重新初始化</li>
</ol>
<p>總結：</p>
<ol>
<li>盡量不要在資料表內使用「有參考使用者自訂函數」的計算資料行，很容易造成複寫同步失敗</li>
<li>已發布項目，直接用GUI介面修改即可，會自動套用變更(但注意如果改資料表，欄位前後順序不要動)</li>
<li>注意前面提到的刪除欄位會造成的bug</li>
<li>新增發布項目，需要重新建立快照集，但不用重新初始化</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-68.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何在VNC中切換輸入法</title>
		<link>http://mind.cjh.cc/post-66.html</link>
		<comments>http://mind.cjh.cc/post-66.html#comments</comments>
		<pubDate>Thu, 26 Feb 2009 01:30:00 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[網路]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[問題解決]]></category>
		<category><![CDATA[快速鍵]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=66</guid>
		<description><![CDATA[按下鍵盤上的Scroll Lock鍵即可
]]></description>
			<content:encoded><![CDATA[<p>按下鍵盤上的Scroll Lock鍵即可</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-66.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打造M+B+W+C Open Source開發環境(4) &#8211; Code::Blocks安裝&amp;設定</title>
		<link>http://mind.cjh.cc/post-46.html</link>
		<comments>http://mind.cjh.cc/post-46.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 16:27:44 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[Code::blocks]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=46</guid>
		<description><![CDATA[Code::Blocks官網：http://www.codeblocks.org/
下載位址：目前為8.02版本，下載請按此
安裝方式：也是安裝檔，直接執行讓它裝完即可
設定：
初次開啟程式時，會要你選擇complier，選擇我們剛才裝的MinGW即可(GCC)，Code::Block會幫你處理好所有相關的設定
一般來說，如果前面步驟都正確的話，現在已經可以開一個Console Application專案來試試看了，應該可以順利的看到Hellow World字樣出現在螢幕上
進階設定：
接下來我們要讓先前辛苦編譯的Boost和wxWidgets可以使用，必須要再做一些設定

設定Global variabels： 工具列-&#62; settings-&#62;Global variables

設定wxWidgets的路徑
只要設定「base」的路徑，程式就會自動去對應其下的「include」和「lib」目錄，很方便吧~
設定Boost的路徑
因為boost編譯的目錄型態比較特殊，所以我們要分別去幫他指定
補充說明：Global variable設定完之後，我們就可以利用$(#關鍵字)去取用該目錄，不用再輸入落落長的路徑
設定complier和linker的搜尋目錄：工具列-&#62; settings-&#62;complier and debugger

設定complier - 輸入$(#boost.include)
設定linker - 輸入$(#boost.lib)



做到這裡，恭喜你已經完成M+B+W+C的環境建置，準備體驗開放原始碼的威力吧!
(也許你會有疑問，那剛才的wx變數是用來做啥？後面我們在開啟wxWidgets專案時，就會用到囉)
]]></description>
			<content:encoded><![CDATA[<p><strong>Code::Blocks官網：</strong><a href="http://www.codeblocks.org/" target="_blank">http://www.codeblocks.org/</a></p>
<p><strong>下載位址：</strong>目前為8.02版本，下載請<a href="http://downloads.sourceforge.net/codeblocks/codeblocks-8.02-setup.exe" target="_blank">按此</a></p>
<p><strong>安裝方式：</strong>也是安裝檔，直接執行讓它裝完即可</p>
<p><strong>設定：</strong></p>
<p style="padding-left: 30px;">初次開啟程式時，會要你選擇complier，選擇我們剛才裝的MinGW即可(GCC)，Code::Block會幫你處理好所有相關的設定</p>
<p style="padding-left: 30px;">一般來說，如果前面步驟都正確的話，現在已經可以開一個Console Application專案來試試看了，應該可以順利的看到Hellow World字樣出現在螢幕上</p>
<p><strong>進階設定：</strong></p>
<p style="padding-left: 30px;">接下來我們要讓先前辛苦編譯的Boost和wxWidgets可以使用，必須要再做一些設定</p>
<ol>
<li><strong>設定Global variabels： </strong>工具列-&gt; settings-&gt;Global variables
<ul>
<li>設定wxWidgets的路徑<img class="pie-img" src="http://lh6.ggpht.com/_jk64DbLT56k/SVpQayHUcXI/AAAAAAAAADk/Z2wOXR-MU5M/081230-codeblocks-01.jpg?imgmax=800" alt="081230-codeblocks-01.jpg" width="552" height="431" /></li>
<p><strong>只要設定「base」的路徑，程式就會自動去對應其下的「include」和「lib」目錄，很方便吧~</strong></p>
<li>設定Boost的路徑<img class="pie-img" src="http://lh6.ggpht.com/_jk64DbLT56k/SVpShSJq1PI/AAAAAAAAADs/xCbWekqwyDw/081230-codeblocks-02.jpg?imgmax=800" alt="081230-codeblocks-02.jpg" width="552" height="431" /></li>
<p><strong>因為boost編譯的目錄型態比較特殊，所以我們要分別去幫他指定</strong></ul>
<p><strong>補充說明：</strong>Global variable設定完之後，我們就可以利用<strong>$(#關鍵字)</strong>去取用該目錄，不用再輸入落落長的路徑</li>
<li><strong>設定complier和linker的搜尋目錄：</strong>工具列-&gt; settings-&gt;complier and debugger
<ul>
<li>設定complier - <strong>輸入$(#boost.include)</strong><img class="pie-img" src="http://lh4.ggpht.com/_jk64DbLT56k/SWKkrrNL9OI/AAAAAAAAAE8/JII2UdSRH0A/090106-codeblocks-03.jpg?imgmax=800" alt="090106-codeblocks-03.jpg" width="593" height="536" /></li>
<li>設定linker - <strong>輸入$(#boost.lib)</strong><img class="pie-img" src="http://lh4.ggpht.com/_jk64DbLT56k/SWKkr9vyvCI/AAAAAAAAAFE/5dhreMXqRmg/090106-codeblocks-04.jpg?imgmax=800" alt="090106-codeblocks-04.jpg" width="593" height="536" /></li>
</ul>
</li>
</ol>
<p><strong>做到這裡，<span style="color: #ff0000;">恭喜你已經完成M+B+W+C的環境建置</span>，準備體驗開放原始碼的威力吧!</strong></p>
<p><span style="color: #808080;">(也許你會有疑問，那剛才的wx變數是用來做啥？後面我們在開啟wxWidgets專案時，就會用到囉)</span></p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-46.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打造M+B+W+C Open Source開發環境(3) &#8211; wxWidgets安裝&amp;編譯</title>
		<link>http://mind.cjh.cc/post-36.html</link>
		<comments>http://mind.cjh.cc/post-36.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 18:30:05 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=36</guid>
		<description><![CDATA[wxWidgets官網：http://www.wxwidgets.org/
下載位址：目前是2.8.9，下載按這裡
安裝方式：一樣是簡單的安裝檔，就一直按下一步就好了，安裝目錄請用預設(C:\wxWidgets-2.8.9)
編譯：

要編譯前，請先確認硬碟有1.5G以上的空間
打開檔案總管，在「C:\wxWidgets-2.8.9\build\msw」目錄下面，建一個批次檔，內容如下
mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1;
mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1;
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1;
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1
存檔後直接執行，就開始編譯了(N小時，建議下班或外出前做，放著讓它跑)，編譯完成就ok

小提醒1：編譯真的很久，千萬不要在很忙or趕進度的時候做
小提醒2：上面那四行編譯指令，SHARED=0和=1的差別，前者產生static link檔，後者產生dll檔，所以如果只要其中一種，可刪除不用的那兩行，節省時間。
作到這邊，已經完成最麻煩&#38;耗時間的步驟了，只剩下Code::Blocks的安裝設定
]]></description>
			<content:encoded><![CDATA[<p><strong>wxWidgets官網：</strong><a href="http://www.wxwidgets.org/" target="_blank">http://www.wxwidgets.org/</a></p>
<p><strong>下載位址</strong>：目前是2.8.9，下載按<a href="http://prdownloads.sourceforge.net/wxwindows/wxMSW-2.8.9-Setup.exe" target="_blank">這裡</a></p>
<p><strong>安裝方式：</strong>一樣是簡單的安裝檔，就一直按下一步就好了，安裝目錄請用預設(C:\wxWidgets-2.8.9)</p>
<p><strong>編譯：</strong></p>
<ol>
<li>要編譯前，<span style="color: #ff0000;"><strong>請先確認硬碟有1.5G以上的空間</strong></span></li>
<li>打開檔案總管，在「<strong>C:\wxWidgets-2.8.9\build\msw</strong>」目錄下面，建一個批次檔，內容如下</li>
<blockquote><p>mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1;<br />
mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1;<br />
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1;<br />
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1</p></blockquote>
<li>存檔後直接執行，就開始編譯了(N小時，建議下班或外出前做，放著讓它跑)，編譯完成就ok</li>
</ol>
<p><strong>小提醒1</strong>：編譯真的很久，千萬不要在很忙or趕進度的時候做<br />
<strong>小提醒2</strong>：上面那四行編譯指令，SHARED=0和=1的差別，前者產生static link檔，後者產生dll檔，所以如果只要其中一種，可刪除不用的那兩行，節省時間。</p>
<p>作到這邊，已經完成最麻煩&amp;耗時間的步驟了，只剩下Code::Blocks的安裝設定</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-36.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打造M+B+W+C Open Source開發環境(2) &#8211; Boost安裝&amp;編譯</title>
		<link>http://mind.cjh.cc/post-30.html</link>
		<comments>http://mind.cjh.cc/post-30.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 17:55:28 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[Boost]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=30</guid>
		<description><![CDATA[Boost官網：http://www.boost.org/
下載位址：目前版本為1.37.0，要下載兩個東西

Boost原始檔 - 下載按這裡(選你可以解壓縮的格式)
Boost Jam(用來編譯boost用的工具) - 下載按這裡(請選ntx86那個檔案)

安裝方式：

下載完成之後，先把boost壓縮檔解開，一般我會放在c:\下面
把Jam的壓縮檔也解開，解開後會有個目錄，裡面有一個bjam.exe和一個文字檔，全部複製到剛才解壓的boost目錄下(我是放在c:\boost_1_37_0)

編譯：

確認你系統path有設定給剛才安裝的 「MinGW目錄\Bin」而且裝完MinGW有重開機過，讓設定生效
打開「命令提示字元」(開始-&#62;執行-&#62;輸入「cmd」按enter)
將當前目錄移到你的boost根目錄(cd c:\boost_1_37_0 按enter)
輸入以下指令：
bjam --build-type=complete --toolset=gcc install
進行編譯(會跑一段時間，去泡杯咖啡找人聊聊天吧)，編譯完就ok了

小提醒1：此方式會把boost編譯後產生的檔案自動放在c:\boost目錄內
小提醒2：bjam的設定可在命令提示字元裡面輸入bjam --help查看說明
]]></description>
			<content:encoded><![CDATA[<p><strong>Boost官網</strong>：<a href="http://www.boost.org/" target="_blank">http://www.boost.org/</a></p>
<p><strong>下載位址</strong>：目前版本為1.37.0，要下載兩個東西</p>
<ol>
<li>Boost原始檔 - 下載按<a href="http://sourceforge.net/project/showfiles.php?group_id=7586&amp;package_id=8041&amp;release_id=637761" target="_blank">這裡</a>(選你可以解壓縮的格式)</li>
<li>Boost Jam(用來編譯boost用的工具) - 下載按<a href="http://sourceforge.net/project/showfiles.php?group_id=7586&amp;package_id=72941&amp;release_id=643622" target="_blank">這裡</a>(請選ntx86那個檔案)</li>
</ol>
<p><strong>安裝方式</strong>：</p>
<ol>
<li>下載完成之後，先把boost壓縮檔解開，一般我會放在c:\下面</li>
<li>把Jam的壓縮檔也解開，解開後會有個目錄，裡面有一個bjam.exe和一個文字檔，全部複製到剛才解壓的boost目錄下(我是放在c:\boost_1_37_0)</li>
</ol>
<p><strong>編譯：</strong></p>
<ol>
<li>確認你系統path有設定給剛才安裝的 「MinGW目錄\Bin」而且裝完MinGW<span style="text-decoration: underline;">有重開機過</span>，讓設定生效</li>
<li>打開「命令提示字元」(開始-&gt;執行-&gt;輸入「cmd」按enter)</li>
<li>將當前目錄移到你的boost根目錄(cd c:\boost_1_37_0 按enter)</li>
<li>輸入以下指令：</li>
<blockquote><p>bjam --build-type=complete --toolset=gcc install</p></blockquote>
<li>進行編譯(會跑一段時間，去泡杯咖啡找人聊聊天吧)，編譯完就ok了</li>
</ol>
<p><strong>小提醒1</strong>：此方式會把boost編譯後產生的檔案自動放在c:\boost目錄內<br />
<strong>小提醒2</strong>：bjam的設定可在命令提示字元裡面輸入bjam --help查看說明</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-30.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打造M+B+W+C Open Source開發環境(1) &#8211; MinGW安裝</title>
		<link>http://mind.cjh.cc/post-27.html</link>
		<comments>http://mind.cjh.cc/post-27.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 17:33:42 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[MinGW]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=27</guid>
		<description><![CDATA[MinGW官網：http://www.mingw.org/
下載位址：目前是5.1.4版本，按這裡下載
安裝方式：

下載回來即是安裝檔，直接執行，按照指示下一步下一步即可
安裝完成後，請確認系統Path參數有設定到「你的MingGW安裝目錄\bin」下，然後重開機使設定生效

小提醒1：他會出現安裝選項，可以自己選擇要裝啥，一般來說我都是全選的(因為也不知道哪些可以不用裝XD)
選完之後會自動去下載需要的檔案，然後幫你裝完。
小提醒2：預設是安裝在C:\MinGW目錄下，建議你也不要亂改...
]]></description>
			<content:encoded><![CDATA[<p><strong>MinGW官網</strong>：<a href="http://www.mingw.org/" target="_blank">http://www.mingw.org/</a></p>
<p><strong>下載位址</strong>：目前是5.1.4版本，按<a href="http://sourceforge.net/project/showfiles.php?group_id=2435&amp;package_id=240780&amp;release_id=595197" target="_blank">這裡</a>下載</p>
<p><strong>安裝方式：</strong></p>
<ol>
<li>下載回來即是安裝檔，直接執行，按照指示下一步下一步即可</li>
<li>安裝完成後，請確認系統Path參數有設定到「你的MingGW安裝目錄\bin」下，然後重開機使設定生效</li>
</ol>
<p><strong>小提醒1：</strong>他會出現安裝選項，可以自己選擇要裝啥，一般來說我都是全選的(因為也不知道哪些可以不用裝XD)<br />
選完之後會自動去下載需要的檔案，然後幫你裝完。</p>
<p><strong>小提醒2：</strong>預設是安裝在C:\MinGW目錄下，建議你也不要亂改...</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-27.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>打造M+B+W+C Open Source開發環境(0) &#8211; 前言</title>
		<link>http://mind.cjh.cc/post-25.html</link>
		<comments>http://mind.cjh.cc/post-25.html#comments</comments>
		<pubDate>Sat, 27 Dec 2008 17:22:48 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[Boost]]></category>
		<category><![CDATA[Code::blocks]]></category>
		<category><![CDATA[MinGW]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/?p=25</guid>
		<description><![CDATA[所謂的「M+B+W+C」，就是

M：MinGW - C++ complier
B：Boost，C++程式庫，有很多方便好用的東西(比較有名的是effictive c++裡面提到的smart pointer)
W：wxWidgets，GUI程式庫，架構十分類似MFC，但更好(而且仍在持續更新)
C：Code::Blocks，程式編輯器，整合wxWidgets的RAD介面(wxSmith)

為何用這四個呢？

Open Source，有問題可以自己trace原始碼
Free，完全免費，包含商業用途，除了花下載、編譯時間之外，沒有其他額外成本
比起其他的Open Souce Projects，算是開發比較久，也比較成熟的產品，網路上的資料也十分多
我爽~就是看順眼XD

再來會逐一介紹如何安裝及設定(Windows XP環境)
]]></description>
			<content:encoded><![CDATA[<p>所謂的「M+B+W+C」，就是</p>
<ol>
<li><strong>M</strong>：MinGW - C++ complier</li>
<li><strong>B</strong>：Boost，C++程式庫，有很多方便好用的東西(比較有名的是effictive c++裡面提到的smart pointer)</li>
<li><strong>W</strong>：wxWidgets，GUI程式庫，架構十分類似MFC，但更好(而且仍在持續更新)</li>
<li><strong>C</strong>：Code::Blocks，程式編輯器，整合wxWidgets的RAD介面(wxSmith)</li>
</ol>
<p>為何用這四個呢？</p>
<ol>
<li>Open Source，有問題可以自己trace原始碼</li>
<li>Free，完全免費，包含商業用途，除了花下載、編譯時間之外，沒有其他額外成本</li>
<li>比起其他的Open Souce Projects，算是開發比較久，也比較成熟的產品，網路上的資料也十分多</li>
<li>我爽~就是看順眼XD</li>
</ol>
<p>再來會逐一介紹如何安裝及設定(Windows XP環境)</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-25.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>T-SQL DateDiff函式小研究</title>
		<link>http://mind.cjh.cc/post-22.html</link>
		<comments>http://mind.cjh.cc/post-22.html#comments</comments>
		<pubDate>Mon, 07 Apr 2008 04:26:25 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/post-22.html</guid>
		<description><![CDATA[SELECT DateDiff(year,'2006/12/31 00:00:00','2006/12/31  23:59:59') = 0
SELECT DateDiff(year,'2006/12/31 00:00:00','2007/1/1  00:00:00') = 1
SELECT DateDiff(year,'2007/1/1 00:00:00','2007/12/31  23:59:59') = 0

在該年內都算0
注意：只要跨越當年就算1，不論天數(所以只差一天也可以視為year+1)
同理，day為單位的話，也是只要跨越當天就算1，不論秒數(所以只差1秒也可以算day +1)

]]></description>
			<content:encoded><![CDATA[<p>SELECT DateDiff(year,'2006/12/31 00:00:00','2006/12/31  23:59:59') = 0<br />
SELECT DateDiff(year,'2006/12/31 00:00:00','2007/1/1  00:00:00') = 1<br />
SELECT DateDiff(year,'2007/1/1 00:00:00','2007/12/31  23:59:59') = 0</p>
<ol>
<li>在該年內都算0</li>
<li><strong>注意：</strong>只要跨越當年就算1，不論天數(所以只差一天也可以視為year+1)</li>
<li>同理，day為單位的話，也是只要跨越當天就算1，不論秒數(所以只差1秒也可以算day +1)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-22.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VB.NET中Boolean的轉型</title>
		<link>http://mind.cjh.cc/post-21.html</link>
		<comments>http://mind.cjh.cc/post-21.html#comments</comments>
		<pubDate>Wed, 26 Mar 2008 03:59:09 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/post-21.html</guid>
		<description><![CDATA[當 Visual Basic 將數字資料型別轉換成 Boolean 時，0 會變成 False，而其他所有值都會變成 True。
當 Visual Basic 將 Boolean 值轉換成數字型別時，False 會變成 0，而 True 會變成 -1。
]]></description>
			<content:encoded><![CDATA[<p>當 Visual Basic 將數字資料型別轉換成 Boolean 時，<strong>0 會變成 False，而其他所有值都會變成 True</strong>。</p>
<p>當 Visual Basic 將 Boolean 值轉換成數字型別時，<strong>False 會變成 0，而 True 會變成 -1</strong>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My.Computer.FileSystem.SpecialDirectories</title>
		<link>http://mind.cjh.cc/post-19.html</link>
		<comments>http://mind.cjh.cc/post-19.html#comments</comments>
		<pubDate>Thu, 21 Feb 2008 03:03:54 +0000</pubDate>
		<dc:creator>CJH</dc:creator>
				<category><![CDATA[程設]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://mind.cjh.cc/post-19.html</guid>
		<description><![CDATA[注意:此物件下附屬的所有屬性(傳回特殊目錄) 目錄路徑都是 沒有「\」號結尾的
如  My.Computer.FileSystem.SpecialDirectories.Temp
則傳回C:\Documents and Settings\chrischen.ANPS\Local Settings\Temp
若要後接檔名時要自行加上，否則路徑會有錯
]]></description>
			<content:encoded><![CDATA[<p><strong>注意:此物件下附屬的所有屬性(傳回特殊目錄) 目錄路徑都是 沒有「\」號結尾的</strong></p>
<p>如  My.Computer.FileSystem.SpecialDirectories.Temp<br />
則傳回C:\Documents and Settings\chrischen.ANPS\Local Settings\Temp</p>
<p>若要後接檔名時要自行加上，否則路徑會有錯</p>
]]></content:encoded>
			<wfw:commentRss>http://mind.cjh.cc/post-19.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
