How do I safely pass a CComPtr<IDirect3DDevice9> to another class via its constructor? Do I pass by reference or by value? Which way does the CComPtr actually add to the reference counter? And do I store it as raw pointer or another CComPtr in the newly created class?
I'm bit overwhelmed by the pointers, references and memory leaks I have to deal with coming from C# :-/
Thanks for your help in advance,