Time of Update: 2018-12-03
幾個月未曾用,開機後發現新買的120GB 8MB Cache的WD 硬碟壞了。壞了拉倒,沒什麼要緊資料,只是可惜了好多H-animation 和 漫畫什麼的。 進入windows,時間甚長。 反應異常遲鈍。一個SVCHOST佔用了90%的資源。 病毒自然不可能。Kill Process後發現網路服務被Kill了。 結果就去懷疑相關的網路服務異常,未果。
Time of Update: 2018-12-03
因為工作關係,需要維持一個Project,於是選定了code.google.com好吧,如果再讓我選一次,我一定會.........說一下吧,首先去code.google.com建立一個工程,然後選擇用GIT作為 版本控制工具。以前一直用TFS的,SVN也被棄用很久了,沒辦法,上手GIT把。下面說一遍 code.google.com 使用GIT 一步步開始配置1. 建立工程,選擇GIT作為版本控制
Time of Update: 2018-12-03
var column1 = new DataGridTextColumn(); column1.Header = "Hello World"; column1.Binding = new Binding("firstName"); var column2 = new DataGridTemplateColumn(); column2.Header = "Template Column"; var template = new DataTemplate { DataType =
Time of Update: 2018-12-03
在ie6,ie7都有這樣一些問題: input checkbox radio 無法動態設定checked radio 對象莫名其妙被篡改。 解決方案: 1.使用 oContainer.innerHTML = '<input ...........>'這樣即使oContainer稍後再併入父容器,也不會造成checked無法動態設定。 如果不這樣,而是:var oInput = document.createElement('input');oInput.type =
Time of Update: 2018-12-03
前些天在調整控制項位置,總是出現非預想的錯誤。我完全沒有注意到msdn關於參數的注釋:hWnd [in] Handle to the window. hWndInsertAfter [in] Handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.X [in]
Time of Update: 2018-12-03
1.在 stdafx.h 中注釋掉#define WIN32_LEAN_AND_MEAN 或者添加#include <windows.h>在visual studio 2012 中似乎預設不用改2. 找到一個 cpp 檔案,加入:#include <gdiplus.h>using namespace Gdiplus;#pragma comment(lib,"gdiplus.lib")3.winmain函數最上面添加ULONG_PTR
Time of Update: 2018-12-03
<TabItem> <TabItem.Header> <Label Content="賬戶資訊" HorizontalAlignment="Stretch" MouseLeftButtonUp="TabItemHeader_ClientInfo_MouseLeftButtonUp" />
Time of Update: 2018-12-03
我以前發生過,並且經常發生這樣一種情況 , 代碼中加入 MessageBox , 則代碼正常 , 一旦去除 ,立刻有問題.難道message box 是一個黑函數? 今天又遇到了 , 還好我有寶貝給我解決了這個問題. 癥狀: CreateThread( Global::GetHentaiIp .... ) 無法擷取ip , 但是開頭加個 MessageBox 就沒問題了. 原因: 沒有調用WSAStartup 外部原因: 加入MessageBox
Time of Update: 2018-12-03
純css: 1 .在 table 的 css 中聲明: border-collapse: collapse; border-spacing: 0;2 .th td 的css 中聲明: padding:0; 半純css: 1.上同.2.<table cell-padding="0" ............. 詳細見: http://www.dreamdu.com/xhtml/attribute_cellpadding_cellspacing/ http://www.haoxiai.net/
Time of Update: 2018-12-03
今日使用DataGridView在Form中Init代碼如下: dataGridView1.SetColumn(typeof(DebtNormal),ePropertyFieldFilter.All); var debtinfo = new DebtNormal(); debtinfo.債券代碼="測試"; var row = new DataGridViewRow();
Time of Update: 2018-12-03
PSTR psTest = "/x89"; 0x89 == psTest[0] 是否 成立? 不成立. 我本來很疑惑, PSTR[0] 是一個 byte , 0x89 也是一個byte . 反組譯碼如下: 003533E7 8B 45 08 mov eax,dword ptr [psTest] 003533EA 0F B6 08 movsx ecx,byte ptr [eax] 003533ED 81 F9 89 00 00 00
Time of Update: 2018-12-03
過去曾有人說過 Delegate 無法實現多播,其實並不是這樣,System.MulticastDelegate 是Delegate 的基類,所以很明顯,Delegate是可以支援多播的,相信許多人也是這樣麼用的。Event是一個特例化的Delegate , Event在本類中可以作為一個Delegate,實現CallEvent , 但是如果在子類中,就無法CallEvent,cs將告知The event '************************' can only appear
Time of Update: 2018-12-03
1. ManualResetEvnet var mevent = new ManualResetEvent(false); Task.Factory.StartNew(() => { mevent.WaitOne();
Time of Update: 2018-12-03
控制項:Combo Box代碼: static CFont font; font.CreateStockObject(ANSI_VAR_FONT); combo.SetFont(&font); 隨後對 Combo Box 進行 AddString 操作。 字型將是 ANSI_VAR_FONT CDC* pDC = pComboBox->GetDC(); pDC->GetTextFaceW(strTest); // Notice Here @1
Time of Update: 2018-12-03
1. Configuration Properties -> General Output Directory 設定輸出路徑TargetName 設定輸出的檔案名稱,不包擴副檔名,一般是 $(ProjectName)Target Extension 設定輸的副檔名2. Configuration Properties -> VC++ Directories設定 執行路徑,Include路徑,Reference路徑,lib路徑,winrt路徑,source
Time of Update: 2018-12-03
document.body為空白或不是對象2009-10-13 21:34</body><script type="text/javascript" src="ui/js/table/table.js"></script><script type="text/javascript" src="ui/js/jquery.js"></script><script type="text/javascript"
Time of Update: 2018-12-03
switch (ul_reason_for_call){case DLL_PROCESS_ATTACH:{LPCWSTR pcw = L"DLL_PROCESS_ATTACH";GetChu::udpclient.Send((PVOID)pcw,wcslen(pcw)*2+2);getchu.Start();break;}case DLL_THREAD_ATTACH:break;case DLL_THREAD_DETACH:break;case
Time of Update: 2018-12-03
1. CFFEX IF 資料 , 每秒2筆。 如果沒有成交,僅僅委託變動是沒有資料的2. 這類資料是 證券交易所推送到 期貨經紀公司 每秒取2筆。因為不是即時資料,所以有可能每天的開盤第一筆資料的last price 不是open price.比如: IF1302 2012/12/27 9:15:00 的第一筆資料(這一秒也只有這一筆資料)2012-12-27 09:14:00, 2, 0, CFFEX, IF, IF1302, 201302, 0, 2472.6, 0, 0, 0, -1.
Time of Update: 2018-12-03
最近在做一個AsyncEvent,內部使用了Queue,因為效率問題,所以不敢用lock,以為Queue也就push一個T,不用同步。結果今天就崩了,Queue.Enqueue 出錯,提示很奇怪: Source array was not long enough. Check srcIndex and length , and the array's lower bounds.bing了一下,發現是其內部進行Array.Copy出錯的原因。國外的論壇:、http://odetocode.com/
Time of Update: 2018-12-03
String^ abc = gcnew String(); String^ abc = nullptroverride .net 類方法:void Reset() override{....}屬性:property virtual int Count{ int get(){return this->m_Count;} set(int value){this->m_Count=value;}}索引:virtual property int