2012年9月11日 星期二
2012年9月10日 星期一
2012年9月6日 星期四
C# use Devcon.exe
Process p = new Process();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
p.StandardInput.WriteLine("c:\\devcon rescan");
p.Close();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
p.StandardInput.WriteLine("c:\\devcon rescan");
p.Close();
2012年7月22日 星期日
2012年7月18日 星期三
Leica Leitz 35mm f/2 Summicron Serial Numbers
version 1: 1567001-2330800 1958-1969 (8 element)
version 2: 2358301-2485200 1970-1971 (6 element)
version 3: 2538251-2899400 1972-1977 (6 element)
version 4: 2974251-3880946 1979-1999 (7 elements)
version 5: 3731291-now 1997- now (7 elements)
version 2: 2358301-2485200 1970-1971 (6 element)
version 3: 2538251-2899400 1972-1977 (6 element)
version 4: 2974251-3880946 1979-1999 (7 elements)
version 5: 3731291-now 1997- now (7 elements)
2012年7月15日 星期日
2012年7月2日 星期一
C# int16 to 2byte
Use C# BitConverter
byte[] rs = BitConverter.GetBytes((int16)0xabcd);
byte[] rs = BitConverter.GetBytes((int16)0xabcd);
;rs[0] = 0xcd;
;rs[1] = 0xab;
Array.Reverse(rs);//反轉整個一維 Array 中的元素順序
;rs[0] = 0xab;
;rs[1] = 0xcd;
訂閱:
文章 (Atom)