Hi I'm working my way through learning writing a COM control. I've got an example project, and it uses the lines
_pAtlModule->Lock()
_pAtlModule->Unlock()
in the OnCreate() handler and the OnDestroy() handler for the COM control respectively.
I realise that the _pAtlModule is an instance of the CAtlModule - the "application" object (for want of a better description ).
But to my question. What exactly does _pAtlModule->Lock() lock? I know it's a critical section, but what is it protecting?
Must I Lock and Unlock the _pAtlModule object when writing my COM controls?
thanks!