From http://superuser.com/questions/84995/how-to-enable-multiple-processors-on-xp-sp-3 & http://www.pcreview.co.uk/forums/change-hal-out-reinstall-t2562052.html
rundll32 syssetup,SetupInfObjectInstallAction ACPIAPIC_MP_HAL 128 %windir%\inf\hal.inf
.NET
From http://msdn.microsoft.com/zh-tw/library/ms243192(VS.80).aspx
這個逐步解說會示範如何使用 app.config 檔案中所定義的資料來源來進行單元測試。您會學到如何建立 app.config 檔案,它會定義 DataSourceAttribute 類別可以使用的資料來源。本逐步解說將說明的工作包括下列項目:
建立 app.config 檔案。
定義自訂的組態區段。
定義連接字串。
定義資料來源。
使用 DataSourceAttribute 類別存取資料來源。
http://msdn.microsoft.com/en-us/library/yf1d93sz(VS.80).aspx
http://msdn.microsoft.com/en-us/library/ms996492.aspx
http://msdn.microsoft.com/en-us/library/ms996492.aspx
Nullable types are instances of the System.Nullable struct. A nullable type can represent the normal range of values for its underlying value type, plus an additional null value. For example, a Nullable<Int32>, pronounced "Nullable of Int32," can be assigned any value from -2147483648 to 2147483647, or it can be assigned the null value. A Nullable<bool> can be assigned the values true or false, or null. The ability to assign null to numeric and Boolean types is particularly useful when dealing with databases and other data types containing elements that may not be assigned a value. For example, a Boolean field in a database can store the values true or false, or it may be undefined.
The syntax T? is shorthand for System.Nullable<T>, where T is a value type. The two forms are interchangeable.
Use the ?? operator to assign a default value that will be applied when a nullable type whose current value is null is assigned to a non-nullable type, for example int? x = null; int y = x ?? -1;
Q: call parent class' method
http://msdn.microsoft.com/en-us/library/hfw7t1ce.aspx
The base keyword is used to access members of the base class from within a derived class:
Call a method on the base class that has been overridden by another method.
Specify which base-class constructor should be called when creating instances of the derived class.
ActiveX
From http://msdn.microsoft.com/en-us/library/aa446532.aspx#netcfdumpbinpinvoke_topic3
Dumpbin.exe has a lot of command-line switches available, but the one that we are primarily interested in is /EXPORTS, which will give the names of all of the functions the COFF exports.
From http://social.msdn.microsoft.com/forums/zh-TW/233/thread/fa9b137e-892c-42b6-81af-1735163400b4/
activex 是用於放在網頁上然後使用 <object classid="xxxxx" codebase="xxxx.dll"></object> 呼叫, 然後使用javascript 操作該 activex.
上面各位提供的範例所提供的activex 寫法都會有一個問題, 就是該 activex 會被ie 認為是不安全的 ActiveX 而禁止使用, 除非用戶將該網站加入到 信任的網站, 就這一點 大部分的用戶就很難做到, 一般標準的ActiveX 並不會這樣, 只是會詢問用戶端是否下載, 還有顯示該ActiveX是否有簽章,
C#如果要做到標記自己為安全的元件, 必須實作 IObjectSafety ,
[Guid("CB5BDC81-93C1-11CF-8F20-00805F2CD064"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IObjectSafety
{
// methods
void GetInterfacceSafyOptions(System.Int32 riid,out System.Int32 pdwSupportedOptions, out System.Int32 pdwEnabledOptions);
void SetInterfaceSafetyOptions(System.Int32 riid,System.Int32 dwOptionsSetMask,System.Int32 dwEnabledOptions);
}
實作了 IObjectSafety 之後的ActiveX就不會被 IE 認為是不安全的, 用戶也不需要事先要將網站加入到信任網站
http://social.msdn.microsoft.com/forums/zh-TW/233/thread/fa9b137e-892c-42b6-81af-1735163400b4/
http://www.csharphelp.com/2007/08/writing-an-activex-control-using-c/
http://big5.china-code.net/read/7/3/17552.html
http://support.microsoft.com/kb/182598/zh-tw
http://shy-feng.blog007.com/archives/200871210141.aspx
http://shy-feng.blog007.com/archives/200962183736.aspx
http://shy-feng.blog007.com/archives/2008112595527.aspx
http://shy-feng.blog007.com/archives/2009616192654.aspx
DataSet
Q: Javascript如何擷取DataSet中的值
From http://social.msdn.microsoft.com/Forums/zh-TW/236/thread/94f88740-28ce-4c99-bda5-dbf4e1cf4778
JavaScript 沒有表格物件,最常用的就是 JSON 或是 XML,你必須要以 JSON, XML 或其他格式輸出 DataSet.Tables[0] 中的資料到用戶端,才能被 JavaScript 知道。