2008年6月12日 星期四

build 中文版 WinCE OS 卻無法執行導航軟體

build 中文版 WinCE OS 進行移植
卻無法執行導航軟體
發現是路徑的path抓錯

CMap是微軟設計用來 manipulate *.ini檔

http://msdn.microsoft.com/en-us/library/s897094z(VS.80).aspx

Trace到 CMap::GetLine
Debug的快慢
在碰到換行
資料可以去正常取出到m_pData
但是處理到m_Line的時候卻會變成NULL

如果Debug慢一點
也就是
while (m_Offset + len < m_Size
&& '\r' != m_pData[m_Offset+len] && '\n' != m_pData[m_Offset+len])
++len;
(此行在抓取檔案內容)
run久一些

m_Line的data就會正常 不會是NULL

還不清楚關係何在

將*.ini裡面
每行之間 不要換行
也是一個解決方法 (至少Data不會抓錯)


CMap::GetLine 似乎不夠robust

/************************************
// Read a line. We return a ptr and not a reference because we use a
// return value of NULL to signify EOF.
const CLine* CMap::GetLine()
{
DWORD len = 0;
// Look for the end of the line.
while (m_Offset + len < m_Size
&& '\r' != m_pData[m_Offset+len] && '\n' != m_pData[m_Offset+len])
++len;
DWORD len2 = 0;
// Now push the internal offset past the newline.
// (We assume \r\n pairs are always in this order)
if (m_Offset + len + len2 < m_Size && '\r' ==
m_pData[m_Offset+len+len2])
++len2;
if (m_Offset + len + len2 < m_Size && '\n' ==
m_pData[m_Offset+len+len2])
++len2;
if (0 == len + len2)
return NULL;
m_Line.Set(&m_pData[m_Offset], len, m_bUnicode);
m_Offset += len + len2;
return &m_Line;
}
*************************************/

透過Facebook分享

2008年6月11日 星期三

PS. I Love You的電影原聲帶 - LoveYouTillTheEnd

歌曲名稱:LoveYouTillTheEnd



歌詞
Love You Till The End

I just want to see you
When you're all along
I just want to catch you if I can
I just want to be there when the morning light explodes
On your face,it radiates

I cannot escape
I love you till the end

I just want to tell you nothing you don't want to here
All I want is for you to say
Why don't you just take me where I've never been before
I know you want to hear me catch my breath

I love you till the end
I love you till the end
I love you till the end
I love you till the end

I just want to be there
When we're caught in the rain
I just want to see you laugh,not cry
I just want to feel you when the night puts on its cloak
I'm lost for words don't tell me
'Cause all I can say ,'I love you till the end'

I love you till the end
I love you till the end
I love you till the end
I love you till the end

'Cause all I can say ,'I love you till the end'
I love you till the end



非常好聽

有種浪漫 輕鬆的感覺



Reference:
http://vlog.xuite.net/guest/basic.php?media_id=RzZXOEIxLTEwNzY3ODUuZmx2&as=1&shuffleFlag=&repeatFlag=1&from=

透過Facebook分享

2008年6月10日 星期二

2008年6月8日 星期日

隨筆

PSP
ASUS Eee PC
導航機

擴充性 外型 功能 價位

擴充性看來
PSP
遊戲:有無限種遊戲擴充的可能
網路:最新版 3.90M可以支援skype (原來有explorer)

ASUS Eee PC
網路: 所有軟體皆能用 msn, skype,
也支援一般電腦的文書處理

導航機
導航
(Play Music, Photo Viewer and Vedio 大家都可以play)

ASUS 還打算替Eee PC建構網路硬碟的服務 也有越來越多的services
ex. Eee TV, Eee xx系列的相關產品發表

可以用低價電腦 搭配 GPS module + 導航軟體 取代導航機

不同產品 難比較

當你想買一台遊戲機(出國好用 真的)
又想買低價電腦(平常需求)
加上 出去玩 又想認購導航機
哪個會想先買呢

通常會看哪個需求比較急
就決定哪個先買

譬如說現在要出國了
自己又有一台NB
那當然是買遊戲機讓自己帶在旅途上好用

如果不用出國
自己NB太重
想要一台上網機
那準會先買低價電腦

如果又不用出國
假日不想待在家裡
想要出去玩
導航機想必會讓你省去許多找路的時間

廢言太多

隨便紀錄一下

透過Facebook分享