討論串[問題] 將 class B 之 mem. func 塞到 class A 之 func.ptr
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者kwpn (ITSST)時間10年前 (2015/07/18 10:29), 10年前編輯資訊
0
0
2
內容預覽:
http://codepad.org/J87uWOk5 // 20150718 1300 edited. 這是比較舊也比較傳統的做法,. 許多C語言的API常使用這種方式讓C++物件被callback。. (ex: CreateThread, ffmpeg的AVCodecContext有個membe
(還有790個字)

推噓0(0推 0噓 3→)留言3則,0人參與, 最新作者notBeing (read and be read)時間10年前 (2015/07/17 22:55), 編輯資訊
0
0
1
內容預覽:
class Display. {. private:. void ( PlaneDlg::*m_CallBackFunc )(int);. PlaneDlg *m_P;. public:. Display( void ( PlaneDlg::*CallBackFunc )(int), PlaneDl
(還有406個字)

推噓5(5推 0噓 22→)留言27則,0人參與, 最新作者EdisonX (卡卡獸)時間10年前 (2015/07/17 19:13), 10年前編輯資訊
0
0
1
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). vs2010. 問題(Question):. 我想在自己的 class Display 實現 callback 功能 , 讓其他 class 使用. 目前我想比較正式的方法應該是用 template 方式去做,
(還有1921個字)
首頁
上一頁
1
下一頁
尾頁