On Fri Mar 15 04:06:32 2024 +0000, Mohamad Al-Jaf wrote:
It was based on the way struct d3d9 is currently written, though I suppose it's more correct to do as you suggest. Does this make a difference or is it just a matter of style?
Generally speaking, if you can get another interface via QueryInterface(), that other interface belongs to the same object. Interface querying is supposed to be transitive, reflexive, and symmetric, and while you *can* do that with two separate objects [and it's necessary for aggregation] it's strongly implies that you should be using multiple interfaces on the same object.