POV-Ray : Newsgroups : povray.off-topic : Another C++ question : Re: Another C++ question Server Time
29 Sep 2024 17:21:42 EDT (-0400)
  Re: Another C++ question  
From: Warp
Date: 8 Mar 2009 15:48:24
Message: <49b42108@news.povray.org>
http://en.wikipedia.org/wiki/Dynamic-link_library has a brief explanation
of how DLLs work and are used.

  AFAIK what you wrote is how it would work. The DLL defines a function
which returns eg. a pointer of base class type (which is known by the
program). The actual object returned by the function can be anything
derived from that base class, without the program needing to know what
it is.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.