Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Activex Programming Control Webwiz > [ATL] I wonder ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 79 of 174
Post > Topic >>

[ATL] I wonder why declare it so ?

by "=?Utf-8?B?VWhtVGFpSm9vbg==?=" <c_user@[EMAIL PROTECTED] > Dec 7, 2004 at 03:41 AM

Hi! 
I'm ATL begginer 
I'm live in a Korea.

while I study about atl, but I wonder why redefine Template as new 
user-defined datatype using typedef.

that is following source code
---------------------------------------------
template <class ThreadModel>
class CComobjectRootEx: public CComobjectRootBase {
typedef ThreadModel _ThreadModel;    //<------------- this is wondeful? 

public:
  ULONG InternalAddRef() {
    return _ThreadModel::Increment(&m_dwRef);
  };
  ULONG InternalRelease(){
    return _ThreadModel::Decrement(&m_deRef);
  }
};

  
Thank you!
Have a happy day! 





-- 
고마워요~~~ 좋은 하루 되세요!!
 




 1 Posts in Topic:
[ATL] I wonder why declare it so ?
"=?Utf-8?B?VWhtVGFpS  2004-12-07 03:41:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 18:31:05 CST 2008.