Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: fast fast fast Pin
CPallini13-Oct-09 0:14
mveCPallini13-Oct-09 0:14 
GeneralRe: fast fast fast Pin
__erfan__13-Oct-09 0:27
__erfan__13-Oct-09 0:27 
QuestionStored Procedure Pin
MsmVc12-Oct-09 22:14
MsmVc12-Oct-09 22:14 
AnswerRe: Stored Procedure Pin
Rajesh R Subramanian12-Oct-09 22:16
professionalRajesh R Subramanian12-Oct-09 22:16 
GeneralRe: Stored Procedure Pin
MsmVc12-Oct-09 22:19
MsmVc12-Oct-09 22:19 
Questionhow to caputre screen including movie play ? Pin
rambojanggoon12-Oct-09 21:19
rambojanggoon12-Oct-09 21:19 
AnswerRe: how to caputre screen including movie play ? Pin
Rajesh R Subramanian12-Oct-09 21:25
professionalRajesh R Subramanian12-Oct-09 21:25 
AnswerRe: how to caputre screen including movie play ? Pin
Hans Dietrich12-Oct-09 23:58
mentorHans Dietrich12-Oct-09 23:58 
AnswerRe: how to caputre screen including movie play ? Pin
kilt13-Oct-09 2:14
kilt13-Oct-09 2:14 
QuestionEvents waiting on c++ Pin
shiranraviv12-Oct-09 20:42
shiranraviv12-Oct-09 20:42 
AnswerRe: Events waiting on c++ Pin
CPallini12-Oct-09 21:03
mveCPallini12-Oct-09 21:03 
GeneralRe: Events waiting on c++ Pin
shiranraviv12-Oct-09 21:06
shiranraviv12-Oct-09 21:06 
QuestionRe: Events waiting on c++ Pin
CPallini12-Oct-09 21:15
mveCPallini12-Oct-09 21:15 
AnswerRe: Events waiting on c++ Pin
shiranraviv12-Oct-09 21:44
shiranraviv12-Oct-09 21:44 
AnswerRe: Events waiting on c++ Pin
Rajesh R Subramanian12-Oct-09 21:15
professionalRajesh R Subramanian12-Oct-09 21:15 
Questionshift oerator Pin
hrishiS12-Oct-09 20:14
hrishiS12-Oct-09 20:14 
AnswerRe: shift oerator Pin
CPallini12-Oct-09 20:58
mveCPallini12-Oct-09 20:58 
GeneralRe: shift oerator Pin
hrishiS12-Oct-09 21:19
hrishiS12-Oct-09 21:19 
QuestionLinker problem with WinDDK Pin
sashoalm12-Oct-09 20:05
sashoalm12-Oct-09 20:05 
Hi,

I'm trying to create a driver, for which I use WinDDK 7600.16385.0

But when I add a *.lib file, the linker still gives "unresolved external symbol" errors the same as if I haven't added it at all. I know the linker looks for the *.lib file, because I checked - I renamed the lib file to something else and the linker immediately complained that it can't find it. Does anyone here know what might be the problem?

I've referenced the lib file and the include files' dir in the sources file of the driver:

TARGETNAME=driver_drv
TARGETPATH=obj
TARGETTYPE=DYNLINK
TARGETLIBS=$(SDK_LIB_PATH)\winspool.lib \
           $(SDK_LIB_PATH)\user32.lib   \
           $(SDK_LIB_PATH)\kernel32.lib \
           $(SDK_LIB_PATH)\advapi32.lib \
           $(DDK_LIB_PATH)\umpdddi.lib  \
           $(SDK_LIB_PATH)\comdlg32.lib \
           $(SDK_LIB_PATH)\ntdll.lib    \
           $(SDK_LIB_PATH)\win32k.lib   \
           $(SDK_LIB_PATH)\gdi32.lib    \
---->      C:\MYLIB.LIB        <---------------------------------------------- See here
		   
USE_MSVCRT=1
USE_STL=1
USER_C_FLAGS=/EHsc 

DLLDEF=driver.def
DLLORDER=driver.prf
DLLENTRY=_DllMainCRTStartup

INCLUDES=C:\MYLIB\Include      <---------------------------------------------- See here

C_DEFINES=$(C_DEFINES) -DSTRICT -DUNICODE -D_UNICODE -DUMODE -DUSERMODE_DRIVER

C_DEFINES=$(C_DEFINES) -DWIN32 -D_CONSOLE -D_VISUALC_ -DNeedFunctionPrototypes -D_DLL



NTPROFILEINPUT=yes
MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /WX /W3

SOURCES=driver.cpp \
        driver.rc


There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: Linker problem with WinDDK Pin
thready6-Feb-10 7:58
thready6-Feb-10 7:58 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:05
sashoalm6-Feb-10 8:05 
GeneralRe: Linker problem with WinDDK Pin
thready6-Feb-10 8:11
thready6-Feb-10 8:11 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:16
sashoalm6-Feb-10 8:16 
GeneralRe: Linker problem with WinDDK Pin
thready6-Feb-10 8:28
thready6-Feb-10 8:28 
GeneralRe: Linker problem with WinDDK Pin
sashoalm6-Feb-10 8:41
sashoalm6-Feb-10 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.