Hi,

I have a question about the "C++" symbol export.
Is it possible to export some "C++" symbols (classes)
using .def file (instead of __declspec(dllexport)) ?

Thanks
George

Re: .def file and C++ by Igor

Igor
Mon Jul 12 12:29:44 CDT 2004

"George" <agdm1@mail.ru> wrote in message
news:%23ZZ%23fp%23ZEHA.3132@TK2MSFTNGP10.phx.gbl
> I have a question about the "C++" symbol export.
> Is it possible to export some "C++" symbols (classes)
> using .def file (instead of __declspec(dllexport)) ?

Theoretically, yes. But it's impractical. When you export a class with
__declspec(dllexport), what really gets exported is a number of
functions with C++ mangled names - weird names with lots of special
characters in them. Each method is exported individually, as well as
compiler-generated constructors, destructors and assignment operators if
any. It is theoretically possible to explicitly list all such names in
your .def file, but it's going to be extremely painful. Pretty
pointless, too.
--
With best wishes,
Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken