原创 [WPF] Binding ContextMenu to its logical Parent

ContextMenu是個非常奇怪的傢伙,它一直處於組件樹的根部。   http://blogs.charteris.com/blogs/patl-closed/archive/2007/02/01/Binding-ContextMenu

原创 [WPF] How to dynamic bind Menuitem's Header and Icon

There is no way to bind Menuitem's Header and Icon at the same time in WPF 3.5. I post this question at MSDN:http://soc

原创 Keep the console open long enough to see your program's output

http://www.cplusplus.com/forum/articles/7312/  

原创 正則表達式學習筆記

因項目開發需要,用正則表達式解析點東西。現將收集到的參考資料彙總如下: 正則表達式30分鐘入門教程 (入門)(非常好用的教程,真的是30分鐘搞定) 正則表達式之道 (入門) 竹筍炒肉: 正則表達式學習筆記 關於正則表達式學習 來自 A

原创 [WPF] BitmapEffects Issue

BitmapEffects are not supported on popups http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/71a1da61-9e6e-47e5-b

原创 Change File Attributes

介紹幾種可以改變文件屬性的免費工具   File Touch  1.0+ The FileTouch application was designed to be a small tool that modifies file date

原创 WPF控件中位圖模糊問題

 由於種種原因,WPF控制中位圖模糊的問題很嚴重。 http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx 對於其根本原因,是因爲WPF的顯示繪製是

原创 Interop Object在.Net中的引用計數問題

如何正確的釋放Interop reference是一個有趣的問題,有時候會讓程序運行的莫名其妙。基本上,我們在.Net中訪問的每一個COM對象都有一個稱爲RCW (Runtime Callable Wrapper))的包裝。一個RCW對應

原创 Outlook 2007 Issues for Developers

最近在看outlook 2007開發的問題,發現真是一團糟。現整理一些問題如下: 參考文章:http://www.outlookcode.com/article.aspx?id=59   1. 在Inspector Active事件中訪

原创 Much Improved .NET 4.0 WPF Text Rendering

轉載於 http://karlshifflett.wordpress.com/2009/10/22/much-improved-net-4-0-wpf-text-rendering/   In .NET 4.0 WPF text ren

原创 How to detect "edit mode" in excel

Excel does not provide an interface for outside components to detect "Edit mode" (e.g. when a cell is accepting input

原创 用C#中用默認瀏覽器打開網址

在C#桌面程序中用下面的方法打開網址可能會出現System.ComponentModel.Win32Exception System.Diagnostics.Process.Start(sUrl);   這個異常是隨機並且會看到一個空白的

原创 Vista下面的msxml.dll跑哪裏去了?

Vista下的Visual C++開發人員,可能或多或少的都遇到過這個問題,之前導入XML庫的代碼出現問題。 #import <msxml.dll> // just like we've always done 異常: fatal er

原创 CPPUNIT TDD問題彙總

CppUnit項目主頁:http://sourceforge.net/projects/cppunit/ CppUnit Wiki Page:http://sourceforge.net/apps/mediawiki/cppunit/

原创 MIDL工具生成的TLB文件中大小寫問題

用MIDL將IDL文件生成TLB文件時,有時定義的方法或屬性的大小寫會變掉。 其原因是因爲MIDL是一個大小寫不敏感的工具。 官方的說法是: The IDL and Type library are not case sensitive