I hope someone at MS is listening becuase I am getting really
frustrated with build. For years I have been writing Driver
community tools with MFC and have been using the DDK to build them
since a lot of the tools I build include drivers. Recently in the
process of upgrading the utilities I have moved to later versions of
MFC and visual studio (Yes, I am using 2005) and have used some of the
new classes or functions in classes. Well, now I can no longer get
my stuff to build with the DDK because all that is in there is MFC42.
I’ve spent countless hours trying to get MFC_INCLUDES, MFC_LIB_PATH,
and MFC_LIBS to work, but while I can get it to compile, I have linker
MFC undefines up the wazoo. Has anyone else run into this? I
have appended the sources file that I have been working with. I
should point out that I had additions lines in the TARGETLIBS section
to include MFC71UD.LIB ,etc… But I still had problems… I’d
love to go back to using only build to getting my applications built.
BTW, I created the MFC8 directory in my DDK directory becuase I know
how much build loves spaces in directory names…
TARGETNAME=ObjView
TARGETTYPE=PROGRAM
TARGETPATH=.\lib$(BUILD_ALT_DIR)
#INCLUDES=F:\MSSDK\INCLUDE;$(DDK_INC_PATH);.
INCLUDES=$(DDK_INC_PATH);F:\MSSDK\INCLUDE
TARGETLIBS= $(SDK_LIB_PATH)\comctl32.lib \
$(SDK_LIB_PATH)\Comdlg32.lib \
$(SDK_LIB_PATH)\ole32.lib \
$(SDK_LIB_PATH)\oleaut32.lib \
$(SDK_LIB_PATH)\version.lib \
$(SDK_LIB_PATH)\htmlhelp.lib \
$(SDK_LIB_PATH)\shell32.lib \
$(SDK_LIB_PATH)\comctl32.lib \
$(SDK_LIB_PATH)\SHLWAPI.lib \
$(SDK_LIB_PATH)\ntdll.lib \
$(SDK_LIB_PATH)\kernel32.lib \
$(SDK_LIB_PATH)\setupapi.lib \
$(SDK_LIB_PATH)\aclui.lib \
$(SDK_LIB_PATH)\htmlhelp.lib \
$(SDK_LIB_PATH)\uuid.lib
MFC_VER=71
#MSVCRT=1
#PLATFORM_MFC_VER=0x0600
MFC_INCLUDES=d:\WINDDK\3790.1830\inc\mfc8\include
MFC_LIB_PATH=d:\WINDDK\3790.1830\inc\mfc8\lib*\
MFC_LIBS=d:\WINDDK\3790.1830\inc\mfc8\lib*\
USE_MFCUNICODE=1
#USE_STATIC_MFC=1
#USE_LIBCMT=1
#USE_STL=1
USE_ATL=1
#MSC_WARNING_LEVEL=/W1
C_DEFINES=$(C_DEFINES) -D_UNICODE=1
#DEBUG_CRTS=1
#MSC_OPTIMIZATION=/Od
UMTYPE=windows
#BUFFER_OVERFLOW_CHECKS=NTDLL
LANGUAGE_NEUTRAL=0
LINKER_FLAGS=$(LINKER_FLAGS)
PRECOMPILED_CXX = 1
PRECOMPILED_INCLUDE = stdafx.h
PRECOMPILED_SOURCEFILE = stdafx.cpp
SOURCES= \
objdir.rc \
mainfrm.cpp \
ntobject.cpp \
objectdirectoryview.cpp \
objectview.cpp \
privobji.cpp \
security.cpp \
objdir.cpp \
objdirdoc.cpp \
objdirview.cpp