-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadMeMFC.htm
66 lines (30 loc) · 1.19 KB
/
ReadMeMFC.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<title>MFC Read Me</title>
</head>
<body>
<h1>Notes for MFC.</h1>
<p>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:
<pre><code>
#ifndef DTL_USE_MFC
#include <windows.h>
#else
#include <afx.h>
#endif
</pre></code>
<br>
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: <br>
odbc32.lib odbccp32.lib C:\dtl_36\lib\Debug\DTL.lib<br>
<br>
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.<br>
</p>