1.《把脈vc++》
chap 3
* mfc與atl
atl中無法使用cwnd
chap 4
* 賦值與初始化的區別:前者呼叫operator=(),後者呼叫constructor
2. 以前關於wtl的筆記
3. wtl例子分析:my2ndwtl70win
* my2ndwtl70win.cpp
// hellowtl70win2.cpp : main source file for hellowtl70win2.exe
//#include "stdafx.h"
#include
#include
#include
#include
#include "resource.h"
#include "mymainwnd.h"
//#include "aboutdlg.h"
//#include "maindlg.h"
int run(lptstr /*lpstrcmdline*/ = null, int ncmdshow = sw_showdefault)
mymainwnd.showwindow(ncmdshow);
int nret = theloop.run();
_module.removemessageloop();
return nret;
// return 0;
}int winapi _twinmain(hinstance hinstance, hinstance /*hprevinstance*/, lptstr lpstrcmdline, int ncmdshow)
總結:#2.基本steps
各種環境初始化:coinit, _module.init
視窗生成與訊息迴圈
環境復位:com.uninit. _module.term
#3 視窗生成與訊息迴圈
messageloop實便化並加入_module
主視窗例項化
主視窗生成
主視窗顯示
messageloop.run(訊息迴圈)
_module刪除messaegloop例項
讀書時間 2012 12 13
c 網路程式設計 v1 運用ace和模式消除複雜性 1.傳統os api程式設計的問題 眾多領域的挑戰,如併發 執行緒 程序模型 同步等等 不同os api的語法語義不同,跨平台困難 如程序 執行緒 鎖 socket 共享記憶體 共享庫 dll so 檔案等等 缺乏型別安全機制,容易出現莫名錯誤 c...
《暗時間》讀書感想
暗時間 這本書主要講的是如何利用暗時間進行高效的學習。那暗時間是什麼呢?依照作者的觀點 你走路,買菜,洗臉洗手,坐公交,逛街,出遊,吃飯,睡覺,所有的時間都可以成為 暗時間 簡單來說,暗時間 就是碎片化時間被充分利用起來的時間,而碎片化時間不一定是暗時間。為什麼有些人和你同樣的時間,別人的學習效率永...
讀書時間 2010 05 24 C C
linux高階程式設計 2nd version,楊宗德 1.雜問 q 我們的系統如何保持其os可移植性的?使用ansi庫嗎?2.extern 好像只有變數需要extern宣告,function不需要,如下例 root frank extern cat file.c include int i 0 v...