Hi All,

Well i bought "Programming the microsoft windows driver model" and tried to
compile chapter2/stupid after i had installed sp5 for Visual studios C++ and
now i get this error: Can anyone help me? before i upgraded i had no
problems.

Here is my build log output.

Compiling h:\ntddk\src\stupid directory ********************
'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1'
rc -l 409 -z "MS Sans Serif,Helv/MS Shell Dlg" -r -fo
objchk\i386\driver.tmp -D_X86_=1 -Di386=1 -DSTD_CALL -DCONDITION_HANDLING=1
-DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x
0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -
DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -Ih:\NTDDK\inc -Ih:\NTDDK\inc -Ih:\N
TDDK\inc\ddk\wdm -Ih:\NTDDK\private\inc -Ih:\NTDDK\inc .\driver.rc
cl -nologo -Ii386\ -I. -Ih:\NTDDK\inc -Ih:\NTDDK\inc -Ih:\NTDDK\inc\ddk\wdm
-Ih:\NTDDK\private\inc -Ih:\NTDDK\inc -D_X86_=1 -Di386=1 -DSTD_CALL -DCONDI
TION_HANDLING=1 -DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D
_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_M
EAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 /c /Zel /Zp8
/Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR- /GF -Z7
/Oxs /Oy- -FIh:\NTDDK\inc\warning.h .\driverentry.cpp
driverentry.cpp

Stop.
Linking h:\ntddk\src\stupid directory ********************
'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= 386=1'
link -out:objchk\i386\STUPID.sys -machine:ix86
@H:\DOCUME~1\gary\LOCALS~1\Temp\nma03884.
Microsoft (R) Incremental Linker Version 5.12.8181
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

-STACK:262144,4096
-MERGE:_PAGE=PAGE
-MERGE:_TEXT=.text
-SECTION:INIT,d
-OPT:REF
-OPT:ICF
-IGNORE:4001,4037,4039,4044,4065,4070,4078,4087,4089,4198
-INCREMENTAL:NO
-FULLBUILD
-FORCE:MULTIPLE
-NOCOMMENT
/release
-NODEFAULTLIB
-debug:FULL
-debugtype:cv
-version:5.00
-osversion:5.00
-optidata
-driver -driver:wdm
-align:0x20
-subsystem:native,1.10
-base:0x10000
-entry:DriverEntry@8
-out:objchk\i386\STUPID.sys
objchk\i386\driver.res
objchk\i386\driverentry.obj
h:\NTDDK\libchk\i386\wdm.lib

driverentry.obj : error : Internal error during Pass2

ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 4B82B47A
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00000014

CONTEXT:
Eax = 00000000 Esp = 0012F0B8
Ebx = 0036A328 Ebp = 0012F0C8
Ecx = 00000000 Esi = 0036A328
Edx = 00370009 Edi = 00000000
Eip = 4B82B47A EFlags = 00010256
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012F0B8 Dr3 = 0036A328
Dr1 = 0012F0C8 Dr6 = 00000000
Dr2 = 00000000 Dr7 = 00000000

Stop.

Thanks
Gary Rusher

Re: Newbie Error by James

James
Mon Mar 01 19:18:57 CST 2004

Stick to standard DDK build. Using Visual Studio is not for novices, except
that DDKBuild (eg, hollistech.com) works very well to make VS into a front
end to DDK build.

--
James Antognini
Windows DDK Support

This posting is provided "AS IS" with no warranties, and confers no rights.

"Gary Rusher" <gary@muscleman.f2s.com> wrote in message
news:OOQOHZl$DHA.808@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Well i bought "Programming the microsoft windows driver model" and tried
to
> compile chapter2/stupid after i had installed sp5 for Visual studios C++
and
> now i get this error: Can anyone help me? before i upgraded i had no
> problems.
>
> Here is my build log output.
>
> Compiling h:\ntddk\src\stupid directory ********************
> 'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 386=1'
> rc -l 409 -z "MS Sans Serif,Helv/MS Shell Dlg" -r -fo
>
objchk\i386\driver.tmp -D_X86_=1 -Di386=1 -DSTD_CALL -DCONDITION_HANDLING=1
> -DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=
0x
>
0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 -
>
DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 -Ih:\NTDDK\inc -Ih:\NTDDK\inc -Ih:\N
> TDDK\inc\ddk\wdm -Ih:\NTDDK\private\inc -Ih:\NTDDK\inc .\driver.rc
>
cl -nologo -Ii386\ -I. -Ih:\NTDDK\inc -Ih:\NTDDK\inc -Ih:\NTDDK\inc\ddk\wdm
> -Ih:\NTDDK\private\inc -Ih:\NTDDK\inc -D_X86_=1 -Di386=1 -DSTD_CALL -DCON
DI
>
TION_HANDLING=1 -DNT_UP=1 -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D
>
N32_WINNT=0x0500 -DWINVER=0x0500 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_M
> EAN=1 -DDBG=1 -DDEVL=1 -DFPO=0 -DNDEBUG -D_DLL=1 /c /Zel /Zp8
> /Gy -cbstring /W3 /Gz /QIfdiv- /QIf /QI0f /GB /Gi- /Gm- /GX- /GR-
/GF -Z7
> /Oxs /Oy- -FIh:\NTDDK\inc\warning.h .\driverentry.cpp
> driverentry.cpp
>
> Stop.
> Linking h:\ntddk\src\stupid directory ********************
> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST=
386=1'
> link -out:objchk\i386\STUPID.sys -machine:ix86
> @H:\DOCUME~1\gary\LOCALS~1\Temp\nma03884.
> Microsoft (R) Incremental Linker Version 5.12.8181
> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
>
> -STACK:262144,4096
> -MERGE:_PAGE=PAGE
> -MERGE:_TEXT=.text
> -SECTION:INIT,d
> -OPT:REF
> -OPT:ICF
> -IGNORE:4001,4037,4039,4044,4065,4070,4078,4087,4089,4198
> -INCREMENTAL:NO
> -FULLBUILD
> -FORCE:MULTIPLE
> -NOCOMMENT
> /release
> -NODEFAULTLIB
> -debug:FULL
> -debugtype:cv
> -version:5.00
> -osversion:5.00
> -optidata
> -driver -driver:wdm
> -align:0x20
> -subsystem:native,1.10
> -base:0x10000
> -entry:DriverEntry@8
> -out:objchk\i386\STUPID.sys
> objchk\i386\driver.res
> objchk\i386\driverentry.obj
> h:\NTDDK\libchk\i386\wdm.lib
>
> driverentry.obj : error : Internal error during Pass2
>
> ExceptionCode = C0000005
> ExceptionFlags = 00000000
> ExceptionAddress = 4B82B47A
> NumberParameters = 00000002
> ExceptionInformation[ 0] = 00000000
> ExceptionInformation[ 1] = 00000014
>
> CONTEXT:
> Eax = 00000000 Esp = 0012F0B8
> Ebx = 0036A328 Ebp = 0012F0C8
> Ecx = 00000000 Esi = 0036A328
> Edx = 00370009 Edi = 00000000
> Eip = 4B82B47A EFlags = 00010256
> SegCs = 0000001B SegDs = 00000023
> SegSs = 00000023 SegEs = 00000023
> SegFs = 00000038 SegGs = 00000000
> Dr0 = 0012F0B8 Dr3 = 0036A328
> Dr1 = 0012F0C8 Dr6 = 00000000
> Dr2 = 00000000 Dr7 = 00000000
>
> Stop.
>
> Thanks
> Gary Rusher
>
>



Re: Newbie Error by Walter

Walter
Tue Mar 02 13:45:19 CST 2004

"Gary Rusher" <gary@muscleman.f2s.com> wrote in message
news:OOQOHZl$DHA.808@TK2MSFTNGP12.phx.gbl...
> Well i bought "Programming the microsoft windows driver model" and tried
to
> compile chapter2/stupid after i had installed sp5 for Visual studios C++
and
> now i get this error: Can anyone help me? before i upgraded i had no
> problems.

The thing is, the DDK BUILD utility (which you're obvoiusly using here)
should be using the DDK's own compiler rather than the VS compiler, UNLESS
you happen to be using a back-level DDK. You should be using a DDK at the
3790 release level.

If you installed the book samples with all the options, you can right-click
on the DSP file in explorer and pick the choice "open as DDK project". Then
you can do a build from the IDE's menu that will use the DDK compiler and
linker. You still need the 3790-level DDK, though.

--

---
Walter Oney
Training and Consulting
http://www.oneysoft.com