mandanani wrote:
I fixed the problem by type casting interface with its coclass. ((CTP_CompInputData_Wrp*)pVal)->pTP_CompanyInputData Please let me know if this is the right approach.
I don't think that's a good idea, because a client could quite reasonably implement its own version of your interface, and pass it to your method, causing the type cast to fail and provide no useful error message as to why. If it isn't reasonable to add the property to your interface, you can add an interface to your class that does have that property, and then you can query for that interface safely. Nathan