Saturday, 15 January 2011

c++ - Passing COM objects as references within module -


Is there any reason or conference to not pass the COM object as a reference to an internal object?

I know this reference can not be used in the Com API because it will break binary compatibility. But what could be happening within the module?

Passing a COM object with reference to non-COM functions is perfectly fine. Although a reference is only an alias for an object, which is usually applied as a pointers under the hood.

No comments:

Post a Comment