|
From: <ha...@us...> - 2002-08-30 10:46:19
|
Update of /cvsroot/decaldev/source/Decal
In directory usw-pr-cvs1:/tmp/cvs-serv13815
Modified Files:
ACHooks.cpp ACHooks.h
Log Message:
ACHooks destructor unhooks the ondestroyed
Index: ACHooks.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/Decal/ACHooks.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ACHooks.cpp 30 Aug 2002 08:44:57 -0000 1.15
--- ACHooks.cpp 30 Aug 2002 10:46:09 -0000 1.16
***************
*** 300,303 ****
--- 300,326 ----
}
+ cACHooks::~cACHooks()
+ {
+ s_pACHooks = NULL;
+
+ long Val, lCall1 = 0, lCall2 = 0, lOBCall = 0;
+ if( QueryMemLoc( _bstr_t( "ObjectDestroyed_Call1"), &Val ) == S_OK )
+ {
+ lCall1 = Val;
+ }
+
+ if( QueryMemLoc( _bstr_t( "ObjectDestroyed_Call2"), &Val ) == S_OK )
+ {
+ lCall2 = Val;
+ }
+ if( QueryMemLoc( _bstr_t( "ObjectDestroyed"), &Val ) == S_OK )
+ {
+ lOBCall = Val;
+ }
+
+ HookCall (lCall1, lOBCall);
+ HookCall (lCall2, lOBCall);
+ }
+
STDMETHODIMP cACHooks::QueryMemLoc(BSTR bstrName, long *pVal)
{
Index: ACHooks.h
===================================================================
RCS file: /cvsroot/decaldev/source/Decal/ACHooks.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** ACHooks.h 30 Aug 2002 08:44:57 -0000 1.16
--- ACHooks.h 30 Aug 2002 10:46:09 -0000 1.17
***************
*** 25,28 ****
--- 25,29 ----
public:
cACHooks();
+ ~cACHooks();
DECLARE_REGISTRY_RESOURCEID(IDR_ACHooks)
|