|
|
// global function,:-(
// client can only through this function to use CSoundIn object
CSoundIn & theSoundCapture()
{
static CSoundIn p;
return p;
}
这时候你应该明白了为什么上面的代码中调用CSoundIn的成员函数的时候都是用theSoundCapture来做的原因了吧.
参考资料
1.Microsoft MSDN Library April 2003
2.Scott Meyers,More Effective C++,Addison Wesley出版社,1999
3.David A.Solomon,<<Windows NT技术内幕>>,清华大学出版社,1999
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
网友评论:(评论内容只代表网友观点,与本站立场无关!) |
阅读排行
|