Call any initialization routines
| 205 | // Call any initialization routines |
| 206 | // |
| 207 | void DllInitClasses(BOOL bLoading) |
| 208 | { |
| 209 | int i; |
| 210 | |
| 211 | // DebugBreak(); |
| 212 | |
| 213 | // traverse the array of templates calling the init routine |
| 214 | // if they have one |
| 215 | for (i = 0; i < g_cTemplates; i++) { |
| 216 | const CFactoryTemplate * pT = &g_Templates[i]; |
| 217 | if (pT->m_lpfnInit != NULL) { |
| 218 | (*pT->m_lpfnInit)(bLoading, pT->m_ClsID); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | } |
| 223 | |
| 224 | // called by COM to determine if this dll can be unloaded |
| 225 | // return ok unless there are outstanding objects or a lock requested |