interface Plugin {
   bool initialize();
   void terminate();
   Throwable getLastException();
   SomeObject getSomeObject();
   void returnSomeObject(SomeObject);
}

Sorry, I forgot a couple of commments. I did explain it in the text, though. It was supposed to read:

interface Plugin {
   bool initialize();
   void terminate();

   // Dont' do this! Allocate exceptions on app side.
   Throwable getLastException();

   // Do do this. Allocate plugin objects on DLL side.
   SomeObject getSomeObject();
   void returnSomeObject(SomeObject);
}

Reply via email to