- Nov 29 Sat 2014 18:04
好鄰居小姐補送我生日禮物在水車日本料理
- Nov 28 Fri 2014 16:56
C#使用ADO在Windows Embedded POSReady 2009 系統上出錯
問題:
最近使用C#寫一個ADO存取ACCESS檔案。在W7以及XP執行都正常。但在Windows Embedded POSReady 2009卻一直出現以下錯誤
--------------------------------------------------------------------
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'ADODB.Connection'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00001550-0000-0010-8000-00AA006D2EA4}' failed due to the following error: 不支援此種介面 (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at OperateCamera.Form1.button2_Click(Object sender, EventArgs e) in d:\繼光香香雞\new\拍照打卡\OperateCamera\Form1.cs:line 1834
--------------------------------------------------------------------
System.TypeLoadException: Could not load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly '繼光香香雞拍照打卡, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.StubHelpers.StubHelpers.CreateCustomMarshalerHelper(IntPtr pMD, Int32 paramToken, IntPtr hndManagedType)
at ADODB._Recordset.get_Fields()
at OperateCamera.Form1.button2_Click(Object sender, EventArgs e) in d:\繼光香香雞\new\拍照打卡\OperateCamera\Form1.cs:line 1844
最近使用C#寫一個ADO存取ACCESS檔案。在W7以及XP執行都正常。但在Windows Embedded POSReady 2009卻一直出現以下錯誤
--------------------------------------------------------------------
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'ADODB.Connection'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00001550-0000-0010-8000-00AA006D2EA4}' failed due to the following error: 不支援此種介面 (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at OperateCamera.Form1.button2_Click(Object sender, EventArgs e) in d:\繼光香香雞\new\拍照打卡\OperateCamera\Form1.cs:line 1834
--------------------------------------------------------------------
System.TypeLoadException: Could not load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly '繼光香香雞拍照打卡, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.StubHelpers.StubHelpers.CreateCustomMarshalerHelper(IntPtr pMD, Int32 paramToken, IntPtr hndManagedType)
at ADODB._Recordset.get_Fields()
at OperateCamera.Form1.button2_Click(Object sender, EventArgs e) in d:\繼光香香雞\new\拍照打卡\OperateCamera\Form1.cs:line 1844
- Nov 27 Thu 2014 20:30
SERVER突然掛掉
今天公司的SERVER掛掉
最後處理發現是分頁檔案吃掉了硬碟空間
以後有機會用到要注意
最後處理發現是分頁檔案吃掉了硬碟空間
以後有機會用到要注意
- Nov 26 Wed 2014 13:18
C#判斷星期幾
private string GetDayName()
{
string result = "";
DateTime today = DateTime.Now;
if (today.DayOfWeek == DayOfWeek.Monday)
{
result = "星期一";
}
else if (today.DayOfWeek == DayOfWeek.Tuesday)
{
string result = "";
DateTime today = DateTime.Now;
if (today.DayOfWeek == DayOfWeek.Monday)
{
result = "星期一";
}
else if (today.DayOfWeek == DayOfWeek.Tuesday)
- Nov 23 Sun 2014 23:11
招兵買馬
時限2014年11月30日
公司徵人
1:富有設計感的網頁設計師須懂CSS3+DIV
薪水40~45K面議
2:懂任一種網頁語言的APP工程師。IOS或ANDROID則一
公司會配置筆電、手機、平板
薪水40~45K面議
公司徵人
1:富有設計感的網頁設計師須懂CSS3+DIV
薪水40~45K面議
2:懂任一種網頁語言的APP工程師。IOS或ANDROID則一
公司會配置筆電、手機、平板
薪水40~45K面議
- Nov 23 Sun 2014 11:58
asset路徑問題
路徑格式如下
file:///android_asset/mobileWeb/index.html
要注意的是asset下的資料夾不能有 " _ " 字元,不然系統會無法讀取。
file:///android_asset/mobileWeb/index.html
要注意的是asset下的資料夾不能有 " _ " 字元,不然系統會無法讀取。