I have struggled with this for a while now. I have an ocx built using MFC. I
need to call methods from a COM dll within this ocx. But I am unable to do
so. Here is what I have tried so far. I created a new class within the ocx
manually. Using #import I imported the tlb for the com dll and then using
CoCreateInstance() I instantiate the com dll object. This all goes well. But
when I call methods on the interface pointers, I get E_FAIL errors.
Am I not following the right methodology here? Or is there a step I am
missing?
Any help would be greatly appreciated. Apologies for not posting the code
here, I cannot do so due to security issues.
regards,
Gopal
"Gopal" <Go...@discussions.microsoft.com> wrote in message
news:4CA3C547-D7D6-4467...@microsoft.com...