Alex,
I DECLARE those at the point of use and never worry about spending time to look to see if they are declared already or releasing them.
If a class knows it's going to use an API I'll typically do all the DECLAREs in the Init() so that they are ready to go when the class gets around to needing it.
>Thank you David. I meant DECLAREs (as for Win32 functions) :|
>
>I'll start a new thread with the correct word.