Notes for MFC.

1. Define DTL_USE_MFC in the MFC project. (But not in the DTL Lib project which needs to include <windows.h> when building the basic lib file). This invokes the following logic:


#ifndef DTL_USE_MFC
	#include <windows.h>
#else
	#include <afx.h>
#endif

2. In the linker tab of the MFC project tell it to link in the ODBC libraries and DTL library. So, e.g., in the debug configuration add the following to the list of files linked in:
odbc32.lib odbccp32.lib C:\dtl_36\lib\Debug\DTL.lib

3. Make sure that you are using the same C++ runtime library in your MFC project as is used in building the DTL.lib file. If you don't do this you will get a bunch of linker errors saying that various library functions have already been defined. So, under "C++->code generation->use runtime library" if this is set to "Debug Multithreaded DLL" for the debug configuration of your MFC project then make sure this same value is used in the debug configuration for the DTL lib project.