Exporting class from a dll with a .def file
Posted on 1998-06-29
How to export a C++ non-MFC class from a dll(not a MFC extension dll) with a .def file? Almost all books just tell the readers to use _declspec(). This is really simple. But the VC documentation said that you will have to recompile all .exe files that use the dll if more functions is added to the class! Therefore, I wanted to use a .def file. However, I can find only documentations of exporting functions with a .def file. How to export an entire class? And can I import the class from this dll with _declspec()?
Also, is there any web sites or books that talk about .def files?(I mean talk about some more difficult topics like the question I'm asking)