Thanks....looking in to the AFX_MANAGE_STATE macro now.

That's something I've seen littered here and there in these DLLs before, but never really knew what it did.