今天,終於決定玩下Ubuntu了。本人長久以來只在windows下工作,學習,生活。對Linux仰慕已久。這次嘗嘗鮮吧終於。準備工作:1. Ubuntu 7.10 ISO;2. VMware Workstation ACE Edition 6.0.安裝步驟:1. Create a new virtual machine in VMware and configuration is specified for Ubuntu. 2. Configure the Ubuntu virtual
Quick Tip: Show Shortcut Keys in Visual StudioRight click in the tool bar area --> choose customize, you get the 'Customize' dialog.On the 'Options' tab there's a little check box that says "Show shortcut keys in ScreenTips". Like so:This is off
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
Demand: There is an application app.exe. We want to debug it. The resources we have include:1. app.pdb2. all source code of it (.h/cpp) but without VS project setting files. It maybe build with JamHow to debug it?Solution:1. Create an empty project:
Most of the times, we’re learning just a little too much. We’re attracted to interesting stuff like a moth to a flame. Or oftentimes we just learn what everybody else around us is learning or what we’re told to learn, not knowing why we should learn
Visual C++ 6.0整合式開發環境中可使用的資源還有菜單、加速鍵、串表、位元影像、表徵圖、對話方塊等。在圖5-1所示的“Insert Resource”對話方塊中,給出了程式開發中可供使用的資源。圖5-1 整合式開發環境中的資源資源的匯入與匯出在某些情況下,我們還會用到除開發環境提供的資源以外的其他資源。Visual C++ 6.0整合式開發環境允許我們將其他資源匯入或匯出。在圖5-1所示的“Insert
Eric" Gamma說,要面向抽象編程。面向介面編程是物件導向的核心。防止 “everything depends on everything” 問題,即具體依賴於具體。從GoF設計模式中,我們已經習慣一種思維編程方式:Interface Driven Design 介面驅動,介面驅動有很多好處,可以提供不同靈活的子類實現,增加代碼穩定和健壯性等等,但是介面最終還是需要實現的,也就是如下語句遲早要執行:AInterface a = new AInterfaceImp();