On Fri, 28 Sep 2001, Dom Lachowicz wrote:
> Ok, so plugins work great on Unix, but not on win32. That's because Win32/MSVC > expects the right usage of __declspec(dllimport) and __declspec(dllexport) > before classes and structs that you want to export across DLL boundaries. > That's fine, so I made a new macro and moved it to ut_types.h > > ABI_EXPORT > > Win32 guys, when you're building a particular plugin, you need to #define > ABI_DLL somewhere. There is some comments in src/af/util/xp/ut_types.h on all > of this. I'm hoping to beef up my comments some more there. > > I've converted the src/af/util/xp, src/text/ptbl/xp, src/text/fmt/xp, and > src/wp/impexp/xp directories over. I'll want to also do the others, but there > are a *lot* of classes there... > > So I hope that this doesn't break anyone's build, esp. on win32 (should be > harmless elsewhere). If it does, you've been forewarned - I've just eaten all > the donuts. > > Dom > Clean up the ABI_DLL logic so that plugins will dllexport but Abi functions will dllimport. Clean up of some compiler warnings. Added export capability to a ut_string function that is currently used in bz2abw plugin. Modified Files: src/af/util/xp/ut_string.h src/af/util/xp/ut_types.h src/af/xap/xp/xad_Document.h src/af/xap/xp/xav_View.h src/af/xap/win/xap_Win32Dlg_FileOpenSaveAs.cpp src/text/fmt/xp/fp_Column.h
