The recent days after back to TW
Just wake up from noon break, I think I have to write down some day-to-day things.
Just wake up from noon break, I think I have to write down some day-to-day things.
那個\0很重要。 using System.Runtime.InteropServices; public bool DoDBConnect(string strDSN,string strUID,string strPWD) { try { strConn = “DSN=” + strDSN + “;UID=” + strUID + “;PWD=” + strPWD + “;”; cn = new OdbcConnection(strConn); cmd = new OdbcCommand(); adp = new OdbcDataAdapter(); cmd.CommandType = CommandType.Text; cmd.Connection = cn; } catch { return false; } return true; } [ […]
原本以為在 C# 中使用 struct 又要匯出成 .dll 給 c++ 需要有什麼特殊處理,結果發現其實不用… namespace TESTCOMObject { //其他程式碼 //… public struct tag_Data { public string strName; public string strValue; } } 而在 C++ 裡頭要使用就只要 import 之後就可以放心用了 TESTCOMObject::tag_Data aa[50]; aa[7].strName = “xxabc”; aa[7].strValue = “oo”; aa[17].strName = “xxabcyy”; aa[17].strValue = “oo”; TESTCOMObject::tag_Data bb; bb.strName = “hahaha”; bb.strValue = “hehehe”;
有點繁瑣的方式,全部需要三個檔案來完成。
前幾天 BBCall 講到了這個字,讓我想到了2001年一部以這個字為名的電影。Serendipity,中文片名是翻譯得很爛的「美國情緣」。
處理 XML 文件資料時,利用 XPath 來選取文件中節點是蠻常見的方式,可是當這個節點是具有 namespace 時,該怎麼辦呢?
Early this morning, a fiber optic cable from Santa Cruz to San Francisco area is severed.
“I am not sure how many sessions I should check whether each of them has single or multiple information need.” “So, how many sessions you’ve checked?” “about 2000.” “Wao… that’s enough, much more than necessary.” “囧rz…” “Another question is, how many sessions I should used for experiment? I am not sure how many is enough.” […]
The difference experience while dining with the advisor. (not discussing the foods :P)
Remeber to check the item “Integration Services” (SSIS) in the install process, or you will fail and get a error message like “product level is insufficient for components” while importing data from txt, excel, etc. files into a SQL server 2005 database. Related: porduct level is insufficient for components