1. Rename feacp.dll to disable intellisense. You will find this file in Program files: ...."Microsoft Visual Studio 8"VC"vcpackages folder. 2. If you are still experiencing slowdowns due to .ncb file generation, try deleting the .ncb file for any
The debug configuration of VC++ projects is the configuration that most debugging and development is done on. This is entirely appropriate because the debug information, lack of optimizations, and the extra debug checks in the Microsoft libraries,
Better error/exception handling. 2 ways: a) return status upwards the function calling chain and have the top calling function process the status;b) not necessarily return the status but throw exception when something’s wrong, catch and process the
Now we have one Unicode string, and we want to convert it to be narrow string which means multi byte string and truncate it to desired length.There is one key point: in Unicode string, two bytes represent one charactor; after it is converted into
Eric" Gamma說,要面向抽象編程。面向介面編程是物件導向的核心。防止 “everything depends on everything” 問題,即具體依賴於具體。從GoF設計模式中,我們已經習慣一種思維編程方式:Interface Driven Design 介面驅動,介面驅動有很多好處,可以提供不同靈活的子類實現,增加代碼穩定和健壯性等等,但是介面最終還是需要實現的,也就是如下語句遲早要執行:AInterface a = new AInterfaceImp();