Hi All,
I am facing a serious problem. I need help!
There are cases for QueryInterface method in MSDN one amoung them is, a call to QueryInterface for a pointer to a specified interface succeeds the first time, it must succeed again, and if it fails the first time, it must fail on all subsequent queries (http://msdn.microsoft.com/en-us/library/ms682521%28VS.85%29.aspx).
In my app this is not happening. My app tries to click 3 buttons in sequence.Button1,Button2's query interface returns valid pointers but Button3 pointer is null. But when i try to click the 3rd button alone the pointer returned by queryinterface is valid one and the button is clicked.
Do any one have come across such a scenario? Please share your Knowledege.

I'm pretty sure its line 273 that is causing the problem.

(The Microsoft documentation is right. There is something wrong in your code. But how can anyone help with the limited information you provided?)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.