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”;
有點繁瑣的方式,全部需要三個檔案來完成。
@Vino Prima, a “local” wine shop, but not “local” (santa cruz mountain area) wines.
This is the last time in Vinocruz. 未成年請勿飲酒
很漂亮的校園,個人覺得比 UC Berkeley 還美。不過因為我很笨地把讀卡機寄回家了,所以下面的照片絕大部分都拿別人拍的來充數 :Q
前一陣子去了 Berkeley,想說都已經來加州了,不去逛逛好像蠻可惜的,就跟來了加州不喝葡萄酒一樣 (誤)。
The same, @vinocruz. 這一次的大概是整體品質最好的一次。 未成年請勿飲酒