Using .lib and .dll in D applications
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 20 06:51:15 PDT 2016
> 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);
}
More information about the Digitalmars-d-learn
mailing list