I have found many examples on how to use a function from a DLL, but I
have a DLL (not written by me) that has various classes, and functions
within.
How can I create an object of a class type defined in the DLL and
access functions from the class?
The C++ standard has nothing to say on the subject of DLLs (except a very
indirect adaption in the wording for when statics are initialized).
It doesn't even have anything to say on the subject of name mangling.
Not even on the existence of linkers.
In short, if you're using a different compiler than the one used to
create the DLL, there is little chance that you can use that DLL, unless
the DLL is designed to be language-independent, e.g. COM conventions.
On the other hand, _if_ you have a compatible compiler, see that compiler's
documentation. <ot>Presumably, judging from the terminology, this is on
the Windows platform, and so check out 'dllimport' & friends; MS keywords
that most/many/some compilers for that platform understand.</ot>