dll class inheritance

Christopher Wright dhasenan at gmail.com
Mon Jan 28 18:31:47 PST 2008


Heinz wrote:
> Have you ever tried to cast or inherit from a class that´s in a dll?
> 
> At compile time you´ll always get symbol errors.
> 
> I´m able to create instances from a class with an export function that returns the class but,
> what can i do to make special uses of this class such as casts?

Typing's done at compile time, so you need the class definition at that 
point. You can use a base class or interface, but that's about it. 
Unless you make the code that uses the dll symbols into a dll, which 
might work.


More information about the Digitalmars-d-learn mailing list