Hi all,
when I include wdm.h in my .c file and then
compile the project, for example in the source
file in the ddk src directory. I will get a lot
of error and warning, why and how can I solve
this problem?

Re: how to solve the problem after include wdm.h by Don

Don
Tue Dec 11 06:28:17 PST 2007

Are you building the driver with the WDK BUILD tool and environment? If not
you are doomed, since even if you get a clean compile it may not work.

Most people start with a driver sample, then rip out the guts of the sample
and put in the code that is desired.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply


"zonhai.won" <zonhai.won@gmail.com> wrote in message
news:%23wDp$3$OIHA.5720@TK2MSFTNGP04.phx.gbl...
> Hi all,
> when I include wdm.h in my .c file and then
> compile the project, for example in the source
> file in the ddk src directory. I will get a lot
> of error and warning, why and how can I solve
> this problem?
>



Re: how to solve the problem after include wdm.h by Ali

Ali
Tue Dec 11 06:31:53 PST 2007

On Dec 12, 1:57 pm, "zonhai.won" <zonhai....@gmail.com> wrote:
> Hi all,
> when I include wdm.h in my .c file and then
> compile the project, for example in the source
> file in the ddk src directory. I will get a lot
> of error and warning, why and how can I solve
> this problem?

OK i got quick fix for ya, copy/paste your complier output here.
And if you are smart enough then you should make sure that your
environment is properly set. And sure no space in compile path.
Maybe you need to double check your make file.

//ali

Re: how to solve the problem after include wdm.h by Volodymyr

Volodymyr
Tue Dec 11 06:36:21 PST 2007

Sounds like you're trying to build a driver project in an environment, which
is not yet configured for that. If you're trying to use VS, then I suggest
you to read http://www.hollistech.com/Resources/ddkbuild/ddkbuild.htm

--
Volodymyr
"zonhai.won" <zonhai.won@gmail.com> wrote in message
news:%23wDp$3$OIHA.5720@TK2MSFTNGP04.phx.gbl...
> Hi all,
> when I include wdm.h in my .c file and then
> compile the project, for example in the source
> file in the ddk src directory. I will get a lot
> of error and warning, why and how can I solve
> this problem?
>