原创 VC獲取對話框指針
首先,獲取對話框句柄: 有兩種方法: 1、使用FindWindow()函數: HWND hDialog1 = ::FindWindow(NULL, _T("TestDialog"));//TestDialog爲對話框的名字2、在CDia
原创 VC單選框設置
一、新建n個Radio Button; 二、按ctrl+D給這些Radio Button排好順序; 三、將排在最前面的那個Radio Button的group屬性設置爲true; 四、爲Radio Button定義變量: int m_
原创 簡單內存泄漏檢測方法 解決Detected memory leaks!
轉自:點擊打開鏈接 最近在一個項目中,程序退出後都出現內存泄漏: Detected memory leaks! Dumping objects -> {98500} normal block at 0x05785AD0, 152
原创 Warning::'XXX' will be initialized later
作爲一個有強迫症的人,實在是受不了 warning 的存在 這個warning是由於初始化順序引起的, // 會出現warning 的代碼!class cInit{public: cInit(std::string st