Note that unless there's some tools issue, DllMain doesn't need to be exported to function properly. A DLL's initialization routine is marked as the entry point in the PE header, same as main() in classic C. It might be simpler to just get rid of the export.
Next: From: Magnus Hagander Date: 2007-10-03 11:54:50 Subject: ECPG regression tests Previous: From: Magnus Hagander Date: 2007-10-03 07:47:54 Subject: Re: Latest ecpg patch broke MSVC build