You can only catch a Delphi style object by pointer.
void foo(TObject *p) { try { throw(p); } catch (TObject o) // Error { } catch (TObject *op) // OK { } }
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|