原文連結:http://www.mariosalexandrou.com/blog/?p=67挺有意思的,於是加了一些自己的點評。Nothing is impossible for the person who doesn't have to do it.不記得有多少次,我總是對很多事情想當然,前提是不是我做。但是一旦是要我做的話,就會有很多抗拒的理由了。所以,站著說話不腰疼就是這個意思。You can con a sucker into committing to an impossible
明白了幾個道理,1. VC++的try/catch是基於Win32的SEH實現的。2. try/catch只能捕捉當前線程的異常,每個線程都有自己的異常處理入口。3. 異常處理入口是由OS負責調用的,在異常發生時。4. 為了使用SEH,VC++編譯器自動產生了很多的代碼。 MSDN上關於SEH的經典文章A Crash Course on the Depths of Win32 Structured Exception Handling CodeProject上的類比實現How a C++
終於找到了微軟的官方文檔“Isolated Applications and Side-by-side Assemblies”,原來是推出XP時就有了的技術。以前只是大概聽說,從來沒有細琢磨過,原來這麼有學問。這篇“How To Build and Service Isolated Applications and Side-by-Side Assemblies for Windows XP”文章講得比較詳細,看完基本就瞭解整個的實現原理和開發步驟了。文章說,.NET
如何安裝VC庫?一個看似簡單,其實一點都不簡單的問題。我一直以為放在應用程式的目錄下是最好的,可以避免Dll Hell,其實不然!這篇文章“Why does VC8 install libraries to WinSxS?”做了非常好的解釋!原來微軟也走過了很多的彎路。VC6裡,為了更新的方便,建議放在System32下。VC7裡,考慮到Dll
LNK1112: module machine type 'x64' conflicts with target machine type 'X86' The problem has been solved. Many thanks to steve.Here is the solution, for those might have the same problem 1. To choose the x64 platform, click Build > Configuration