Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In query interface why IID is passed by reference

Status
Not open for further replies.

pranavjosh

Programmer
Apr 12, 2001
30
IN
In QueryInterface WHY IID is passed with reference though it is declared constant
 
Here's what I see in the April MSDN:

[tt]
HRESULT QueryInterface(
REFIID iid, //Identifier of the requested interface
void ** ppvObject //Address of output variable that receives the
//interface pointer requested in iid
);
[/tt]

Is this the function you're calling?

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top