Hi!
Is it possible to have an scf interface inherit another
struct iFoo : public virtual iBase
{
SCF_INTERFACE (iFoo, 0, 0, 1);
};
struct iBar : public virtual iFoo
{
SCF_INTERFACE (iBar, 0, 0, 1);
};
so now when i do scfImplementation1<Bar, iBar>, I'm able to use csRef<iBar>
in places expecting a csRef<iFoo>.
But then given a csRef<iFoo> I want to be able to do
csRef<iBar> bar = scfQueryInterface<iBar> (foo);
if (!bar) puts ("isn't an iBar object :)");
Seems to work good from my tests, but tell me if there's some glaring
errors.
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]