what is this?

What is the member this in visual c++?
ex..
QueryInterface(IExample *this, REFIID vTableGuid, void **ppv)


i need a detailed explanation.
What is the member this in visual c++?


It doesn't hold any special meaning in Visual C++ that it doesn't hold in C++. this is a pointer to the object for which a member function is invoked.

If you have some object of type IUnknown object then when QueryInterface is invoked for object, the use of this inside the method implementation resolves to the address of object (&object).
Last edited on
Topic archived. No new replies allowed.