ATL and MFC support
Posted on 2001-06-02
I'm new to ATL programming so kindly bare with my ignorance, please...
I've written an ATL COM .dll that populates a recordset and returns it to a VB Caller. Everything works great.
I followed a couple of examples and used the Wizard to build this .dll. When I compile it (with MFC support), the resulting .dll is about 45k long.
If I go to setting and specify No MFC support and complile it, I get a couple of warnings:
INK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF
The .dll still works as expected but the resulting .dll grows to approx. 128K long (I am expecting a smaller .dll not a larger one!)
Ok, so if I am trying to produce the lightest weight .dll, which way do I go - MFC support or not. (Or perhaps you have a different suggestion).
Thanks in advance for your assistance!