Hello,

I have an inheritance graph like:

---------------------------------------------------

class iPcCamera : public virtual iBase
 
class iPcMine : public virtual iPcCamera
 
class iCelPropertyClass : public virtual iBase
 
class iCelTimerListener : public virtual iBase
 
class celPcCommon : public scfImplementation2<celPcCommon, iCelPropertyClass, 
iCelTimerListener>
 
class celPcCameraCommon : public celPcCommon
 
class celPcMine : public scfImplementationExt2<celPcMine, iPcMine, 
celPcCameraCommon, scfFakeInterface<iPcCamera> >

---------------------------------------------------

Unfortunately something like

  void* intf = pc->QueryInterface(scfInterfaceTraits<iPcCamera>::GetID (),
    scfInterfaceTraits<iPcCamera>::GetVersion ());
  if (!intf)
    puts ("iPcCamera interface not found!");

where pc is iCelPropertyClass- will fail on iPcCamera, but not with iPcMine. 
Surely this should work since the new iBase::QueryInterface(...) declared in 
celPcMine will check for 2 interfaces??

What can I do to fix this? Thanks for your time.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to