Martin Prikryl 26b6b13bc8 5.6 11 vuotta sitten
..
Intel 2e4b4738f0 5.2 8 vuotta sitten
chs 2e4b4738f0 5.2 8 vuotta sitten
cht 2e4b4738f0 5.2 8 vuotta sitten
deu 2e4b4738f0 5.2 8 vuotta sitten
esp 2e4b4738f0 5.2 8 vuotta sitten
fra 2e4b4738f0 5.2 8 vuotta sitten
ita 2e4b4738f0 5.2 8 vuotta sitten
jpn 2e4b4738f0 5.2 8 vuotta sitten
kor 2e4b4738f0 5.2 8 vuotta sitten
afx.ini 2e4b4738f0 5.2 8 vuotta sitten
afxabort.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxasert.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxcrit.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxdbcs.cpp 2e4b4738f0 5.2 8 vuotta sitten
afximpl.h 2e4b4738f0 5.2 8 vuotta sitten
afxinl1.cpp 26b6b13bc8 5.6 8 vuotta sitten
afxinl2.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxinl3.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxmem.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxstate.cpp 26b6b13bc8 5.6 8 vuotta sitten
afxtls.cpp 2e4b4738f0 5.2 8 vuotta sitten
afxtrace.cpp 2e4b4738f0 5.2 8 vuotta sitten
app3d.cpp 2e4b4738f0 5.2 8 vuotta sitten
app3ds.cpp 2e4b4738f0 5.2 8 vuotta sitten
appcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
appdlg.cpp 2e4b4738f0 5.2 8 vuotta sitten
appgray.cpp 2e4b4738f0 5.2 8 vuotta sitten
apphelp.cpp 2e4b4738f0 5.2 8 vuotta sitten
apphelpx.cpp 2e4b4738f0 5.2 8 vuotta sitten
appinit.cpp 2e4b4738f0 5.2 8 vuotta sitten
appmodul.cpp 2e4b4738f0 5.2 8 vuotta sitten
appprnt.cpp 2e4b4738f0 5.2 8 vuotta sitten
appterm.cpp 2e4b4738f0 5.2 8 vuotta sitten
appui.cpp 2e4b4738f0 5.2 8 vuotta sitten
appui1.cpp 26b6b13bc8 5.6 8 vuotta sitten
appui2.cpp 2e4b4738f0 5.2 8 vuotta sitten
appui3.cpp 2e4b4738f0 5.2 8 vuotta sitten
arccore.cpp 26b6b13bc8 5.6 8 vuotta sitten
arcex.cpp 2e4b4738f0 5.2 8 vuotta sitten
arcobj.cpp 2e4b4738f0 5.2 8 vuotta sitten
arcstrm.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_b.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_d.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_o.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_p.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_s.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_u.cpp 2e4b4738f0 5.2 8 vuotta sitten
array_w.cpp 2e4b4738f0 5.2 8 vuotta sitten
auxdata.cpp 2e4b4738f0 5.2 8 vuotta sitten
barcool.cpp 2e4b4738f0 5.2 8 vuotta sitten
barcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
bardlg.cpp 2e4b4738f0 5.2 8 vuotta sitten
bardock.cpp 2e4b4738f0 5.2 8 vuotta sitten
barstat.cpp 2e4b4738f0 5.2 8 vuotta sitten
bartool.cpp 2e4b4738f0 5.2 8 vuotta sitten
bfcdb.mak 2e4b4738f0 5.2 8 vuotta sitten
bfcdll.mak 2e4b4738f0 5.2 8 vuotta sitten
bfcisapi.mak 2e4b4738f0 5.2 8 vuotta sitten
bfcnet.mak 2e4b4738f0 5.2 8 vuotta sitten
bfcole.mak 2e4b4738f0 5.2 8 vuotta sitten
borland.mak 26b6b13bc8 5.6 8 vuotta sitten
bormem.cpp 2e4b4738f0 5.2 8 vuotta sitten
build_.h 2e4b4738f0 5.2 8 vuotta sitten
ccdata.cpp 2e4b4738f0 5.2 8 vuotta sitten
cmdtarg.cpp 2e4b4738f0 5.2 8 vuotta sitten
commimpl.h 2e4b4738f0 5.2 8 vuotta sitten
ctlcache.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlconn.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctldata.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlevent.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlfont.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlframe.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlimpl.h 2e4b4738f0 5.2 8 vuotta sitten
ctlinl.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlinplc.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlintl.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctllic.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlmodul.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlnownd.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlobj.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpbag.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpict.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlppg.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlprop.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpropx.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpset.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpstg.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlpstm.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlquick.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlrefl.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlreg.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctltrack.cpp 2e4b4738f0 5.2 8 vuotta sitten
ctlview.cpp 2e4b4738f0 5.2 8 vuotta sitten
daocore.cpp 2e4b4738f0 5.2 8 vuotta sitten
daodfx.cpp 2e4b4738f0 5.2 8 vuotta sitten
daoimpl.h 2e4b4738f0 5.2 8 vuotta sitten
daoview.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbflt.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbimpl.h 2e4b4738f0 5.2 8 vuotta sitten
dblong.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbrfx.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbvar.cpp 2e4b4738f0 5.2 8 vuotta sitten
dbview.cpp 2e4b4738f0 5.2 8 vuotta sitten
dcmeta.cpp 2e4b4738f0 5.2 8 vuotta sitten
dcprev.cpp 2e4b4738f0 5.2 8 vuotta sitten
dispimpl.h 2e4b4738f0 5.2 8 vuotta sitten
dlgclr.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgcomm.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgdata.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgfile.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgfloat.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgfnt.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgfr.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgprnt.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgprop.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlgtempl.cpp 2e4b4738f0 5.2 8 vuotta sitten
dlldb.cpp 2e4b4738f0 5.2 8 vuotta sitten
dllinit.cpp 2e4b4738f0 5.2 8 vuotta sitten
dllmodul.cpp 2e4b4738f0 5.2 8 vuotta sitten
dllnet.cpp 2e4b4738f0 5.2 8 vuotta sitten
dllole.cpp 2e4b4738f0 5.2 8 vuotta sitten
doccore.cpp 2e4b4738f0 5.2 8 vuotta sitten
dockcont.cpp 2e4b4738f0 5.2 8 vuotta sitten
dockstat.cpp 2e4b4738f0 5.2 8 vuotta sitten
docmapi.cpp 2e4b4738f0 5.2 8 vuotta sitten
docmgr.cpp 2e4b4738f0 5.2 8 vuotta sitten
docmulti.cpp 2e4b4738f0 5.2 8 vuotta sitten
docsingl.cpp 2e4b4738f0 5.2 8 vuotta sitten
doctempl.cpp 2e4b4738f0 5.2 8 vuotta sitten
dumpcont.cpp 2e4b4738f0 5.2 8 vuotta sitten
dumpflt.cpp 2e4b4738f0 5.2 8 vuotta sitten
dumpinit.cpp 2e4b4738f0 5.2 8 vuotta sitten
dumpout.cpp 2e4b4738f0 5.2 8 vuotta sitten
dumpstak.cpp 2e4b4738f0 5.2 8 vuotta sitten
elements.h 2e4b4738f0 5.2 8 vuotta sitten
except.cpp 2e4b4738f0 5.2 8 vuotta sitten
filecore.cpp 2e4b4738f0 5.2 8 vuotta sitten
filefind.cpp 2e4b4738f0 5.2 8 vuotta sitten
filelist.cpp 2e4b4738f0 5.2 8 vuotta sitten
filemem.cpp 2e4b4738f0 5.2 8 vuotta sitten
fileshrd.cpp 2e4b4738f0 5.2 8 vuotta sitten
filest.cpp 2e4b4738f0 5.2 8 vuotta sitten
filetxt.cpp 2e4b4738f0 5.2 8 vuotta sitten
filex.cpp 2e4b4738f0 5.2 8 vuotta sitten
fixalloc.cpp 2e4b4738f0 5.2 8 vuotta sitten
fixalloc.h 2e4b4738f0 5.2 8 vuotta sitten
indicate.rc 2e4b4738f0 5.2 8 vuotta sitten
inet.cpp 26b6b13bc8 5.6 8 vuotta sitten
inetcall.cpp 2e4b4738f0 5.2 8 vuotta sitten
inetimpl.cpp 2e4b4738f0 5.2 8 vuotta sitten
inetimpl.h 2e4b4738f0 5.2 8 vuotta sitten
isapi.cpp 2e4b4738f0 5.2 8 vuotta sitten
isapimix.cpp 2e4b4738f0 5.2 8 vuotta sitten
list_o.cpp 2e4b4738f0 5.2 8 vuotta sitten
list_p.cpp 2e4b4738f0 5.2 8 vuotta sitten
list_s.cpp 2e4b4738f0 5.2 8 vuotta sitten
makefile 2e4b4738f0 5.2 8 vuotta sitten
map_pp.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_pw.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_so.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_sp.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_ss.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_wo.cpp 2e4b4738f0 5.2 8 vuotta sitten
map_wp.cpp 2e4b4738f0 5.2 8 vuotta sitten
mfcdb.rc 2e4b4738f0 5.2 8 vuotta sitten
mfcdll.rc 2e4b4738f0 5.2 8 vuotta sitten
mfcintl.rc 2e4b4738f0 5.2 8 vuotta sitten
mfcnet.rc 2e4b4738f0 5.2 8 vuotta sitten
mfcole.rc 2e4b4738f0 5.2 8 vuotta sitten
mtcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
mtex.cpp 2e4b4738f0 5.2 8 vuotta sitten
nolib.cpp 2e4b4738f0 5.2 8 vuotta sitten
objcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
occcont.cpp 2e4b4738f0 5.2 8 vuotta sitten
occddx.cpp 2e4b4738f0 5.2 8 vuotta sitten
occddxf.cpp 2e4b4738f0 5.2 8 vuotta sitten
occdlg.cpp 2e4b4738f0 5.2 8 vuotta sitten
occevent.cpp 2e4b4738f0 5.2 8 vuotta sitten
occimpl.h 2e4b4738f0 5.2 8 vuotta sitten
occlock.cpp 2e4b4738f0 5.2 8 vuotta sitten
occmgr.cpp 2e4b4738f0 5.2 8 vuotta sitten
occsite.cpp 2e4b4738f0 5.2 8 vuotta sitten
occstub.cpp 2e4b4738f0 5.2 8 vuotta sitten
ocdb.h 2e4b4738f0 5.2 8 vuotta sitten
ocdbid.h 2e4b4738f0 5.2 8 vuotta sitten
oleasmon.cpp 2e4b4738f0 5.2 8 vuotta sitten
olebar.cpp 2e4b4738f0 5.2 8 vuotta sitten
olebind.h 2e4b4738f0 5.2 8 vuotta sitten
olecall.cpp 2e4b4738f0 5.2 8 vuotta sitten
olecli1.cpp 26b6b13bc8 5.6 8 vuotta sitten
olecli2.cpp 2e4b4738f0 5.2 8 vuotta sitten
olecli3.cpp 2e4b4738f0 5.2 8 vuotta sitten
olecnvrt.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleconn.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledata.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledisp1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledisp2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledlgs1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledlgs2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledlgs3.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledll.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledobj1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledobj2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledoc1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledoc2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledoccl.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledocip.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledocob.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledoctg.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledocvw.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledrop1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oledrop2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleenum.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleexp.cpp 2e4b4738f0 5.2 8 vuotta sitten
olefact.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleimpl.h 2e4b4738f0 5.2 8 vuotta sitten
oleimpl2.h 2e4b4738f0 5.2 8 vuotta sitten
oleinit.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleipfrm.cpp 2e4b4738f0 5.2 8 vuotta sitten
olelink.cpp 2e4b4738f0 5.2 8 vuotta sitten
olelock.cpp 2e4b4738f0 5.2 8 vuotta sitten
olemisc.cpp 2e4b4738f0 5.2 8 vuotta sitten
olemon.cpp 2e4b4738f0 5.2 8 vuotta sitten
olemsgf.cpp 2e4b4738f0 5.2 8 vuotta sitten
olepro32.cpp 2e4b4738f0 5.2 8 vuotta sitten
olepset.cpp 2e4b4738f0 5.2 8 vuotta sitten
olereg.cpp 2e4b4738f0 5.2 8 vuotta sitten
olestrm.cpp 2e4b4738f0 5.2 8 vuotta sitten
olesvr1.cpp 2e4b4738f0 5.2 8 vuotta sitten
olesvr2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oletsvr.cpp 2e4b4738f0 5.2 8 vuotta sitten
oletyplb.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleui1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleui2.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleunk.cpp 2e4b4738f0 5.2 8 vuotta sitten
olevar.cpp 2e4b4738f0 5.2 8 vuotta sitten
olevar1.cpp 2e4b4738f0 5.2 8 vuotta sitten
oleverb.cpp 2e4b4738f0 5.2 8 vuotta sitten
plex.cpp 2e4b4738f0 5.2 8 vuotta sitten
ppgcolor.cpp 2e4b4738f0 5.2 8 vuotta sitten
ppgfont.cpp 2e4b4738f0 5.2 8 vuotta sitten
ppgpict.cpp 2e4b4738f0 5.2 8 vuotta sitten
ppgstock.cpp 2e4b4738f0 5.2 8 vuotta sitten
prompts.rc 2e4b4738f0 5.2 8 vuotta sitten
readme.bcb 2e4b4738f0 5.2 8 vuotta sitten
sockcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
sockimpl.h 2e4b4738f0 5.2 8 vuotta sitten
stdafx.cpp 2e4b4738f0 5.2 8 vuotta sitten
stdafx.h 26b6b13bc8 5.6 8 vuotta sitten
strcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
strex.cpp 26b6b13bc8 5.6 8 vuotta sitten
thrdcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
timecore.cpp 2e4b4738f0 5.2 8 vuotta sitten
tooltip.cpp 2e4b4738f0 5.2 8 vuotta sitten
trckrect.cpp 2e4b4738f0 5.2 8 vuotta sitten
validadd.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewcmn.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewcore.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewedit.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewform.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewhtml.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewoled.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewprev.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewprnt.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewrich.cpp 2e4b4738f0 5.2 8 vuotta sitten
viewscrl.cpp 2e4b4738f0 5.2 8 vuotta sitten
winbtn.cpp 2e4b4738f0 5.2 8 vuotta sitten
wincore.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl1.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl2.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl3.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl4.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl5.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl6.cpp 2e4b4738f0 5.2 8 vuotta sitten
winctrl7.cpp 2e4b4738f0 5.2 8 vuotta sitten
winfrm.cpp 2e4b4738f0 5.2 8 vuotta sitten
winfrm2.cpp 2e4b4738f0 5.2 8 vuotta sitten
winfrmx.cpp 2e4b4738f0 5.2 8 vuotta sitten
wingdi.cpp 2e4b4738f0 5.2 8 vuotta sitten
wingdix.cpp 2e4b4738f0 5.2 8 vuotta sitten
winhand.cpp 2e4b4738f0 5.2 8 vuotta sitten
winhand_.h 2e4b4738f0 5.2 8 vuotta sitten
winmain.cpp 2e4b4738f0 5.2 8 vuotta sitten
winmdi.cpp 2e4b4738f0 5.2 8 vuotta sitten
winmenu.cpp 2e4b4738f0 5.2 8 vuotta sitten
winmini.cpp 2e4b4738f0 5.2 8 vuotta sitten
winocc.cpp 2e4b4738f0 5.2 8 vuotta sitten
winsplit.cpp 2e4b4738f0 5.2 8 vuotta sitten
winstr.cpp 2e4b4738f0 5.2 8 vuotta sitten
winutil.cpp 2e4b4738f0 5.2 8 vuotta sitten

readme.bcb

Using MFC 4.2 with Borland C++Builder 4.0
-----------------------------------------

Here are the steps to build the MFC libraries with BCB. We will assume
that your copy of Borland C++Builder is located in c:\bcb.

1) Build the Libraries
-------------------
Note: the makefile's DEBUG=1 switch enables Diagnostics in the libraries
and DBGINFO=1 enables Turbo Debugger information.

1.1) Static Non-Debug library
------------------------

To build the static, non-debug library (NAFXCW.LIB)

make -fborland.mak DEBUG=0 LIBDIR=c:\bcb\lib

1.2) Static Debug library
--------------------

To build the static, debug library (NAFXCWD.LIB)

make -fborland.mak LIBDIR=c:\bcb\lib

1.3) Non-Debug DLLs and Libraries
----------------------------

To build the monolithic MFC DLL (BFC42.DLL, BFC42.LIB, and BFC42S.LIB)

make -fbfcdll.mak DEBUG=0 LIBDIR=c:\bcb\lib

NOTE: BFC42.DLL contains everything you'll need for MFC in non-debug
mode. When building MFC with DEBUG=1, you'll end up with 3 DLLs (see
1.4)


1.4) Debug DLLs and Libraries
------------------------

To build the debug MFC DLLs:

BFC42D.DLL, BFC42D.LIB
BFCO42D.DLL, BFCO42D.LIB
BFCN42D.DLL, BFCN42D.LIB
BFCD42D.DLL, BFCD42D.LIB

make -fbfcdll.mak LIBDIR=c:\bcb\lib
make -fbfcole.mak LIBDIR=c:\bcb\lib
make -fbfcnet.mak LIBDIR=c:\bcb\lib
make -fbfcdb.mak LIBDIR=c:\bcb\lib

2) Install Libraries and DLLs
--------------------------

The libraries that were created should already be in the Borland
directory C:\BCB\LIB. Copy the new DLLs (located in this directory) to
the Windows System directory, typically C:\WINDOWS\SYSTEM32.


3) Try it out
----------

The MFC examples all contain Borland C++Builder project files (.BPRs) that
have the proper defines and switches set for the type of MFC application
being built.

In case you want to add these into an existing MAKEFILE or otherwise compile
at the command line, here is a list of the defines that should be added with
-D in a compiler configuration file:

MFC 4.2, Static, No OLE:
_X86_;_WINDOWS;_MSC_VER=1100;_AFX_PORTABLE;_AFX_NOFORCE_LIBS;_MT;
_CRT_PORTABLE;_AFX_NO_DEBUG_CRT;

MFC 4.2, Static, OLE:
INC_OLE2;_X86_;_WINDOWS;_MSC_VER=1100;_AFX_PORTABLE;_AFX_NOFORCE_LIBS;
_MT;_CRT_PORTABLE;_AFX_NO_DEBUG_CRT;

MFC 4.2, Dynamic, No OLE:
_RTLDLL;_AFXDLL;_DLL;_X86_;_WINDOWS;_MSC_VER=1100;_AFX_PORTABLE;
_AFX_NOFORCE_LIBS;_MT;_CRT_PORTABLE;_AFX_NO_DEBUG_CRT;

MFC 4.2, Dynamic, OLE:
INC_OLE2;_RTLDLL;_AFXDLL;_DLL;_X86_;_WINDOWS;_MSC_VER=1100;
_AFX_PORTABLE;_AFX_NOFORCE_LIBS;_MT;_CRT_PORTABLE;_AFX_NO_DEBUG_CRT;

The libraries needed to link with are as follows:

MFC 4.2, Static, No Diagnostics, No OLE:
nafxcw.lib odbc32.lib import32.lib cw32mt.lib

MFC 4.2, Static, No Diagnostics, OLE:
nafxcw.lib ole2w32.lib odbc32.lib import32.lib cw32mt.lib

MFC 4.2, Static, Diagnostics, No OLE:
nafxcwd.lib odbc32.lib import32.lib cw32mt.lib

MFC 4.2, Static, Diagnostics, OLE:
nafxcwd.lib ole2w32.lib odbc32.lib import32.lib cw32mt.lib

MFC 4.2, Dynamic, No Diagnostics, No OLE:
bfcs42.lib bfc42.lib odbc32.lib import32.lib cw32mti.lib

MFC 4.2, Dynamic, No Diagnostics, OLE:
bfcs42.lib bfc42.lib ole2w32.lib odbc32.lib import32.lib cw32mti.lib

MFC 4.2, Dynamic, Diagnostics, No OLE:
bfcs42d.lib bfc42d.lib bfco42d.lib bfcn42d.lib odbc32.lib
import32.lib cw32mti.lib

MFC 4.2, Dynamic, Diagnostics, OLE:
bfcs42d.lib bfc42d.lib bfco42d.lib bfcn42d.lib ole2w32.lib
odbc32.lib import32.lib cw32mti.lib

NOTE: When building from the command line remember to use the -VF switch