Re: Compiler bug in the DDK--be aware of it
- From: "Le Chaud Lapin" <jaibuduvin@xxxxxxxxx>
- Date: 31 Jul 2006 21:23:30 -0700
kalden wrote:
I am new to driver development. Can you actually build drivers with
the visual studio 2005 C compiler, or did you compile that piece of
code just to show the bug in the DDK build environment?
To answer you question, yes, you can.
There will be many people here (some experts) who will tell you not to.
Do as you feel appropriate.
Set the Linker /SUBSYSTEM:NATIVE and make /ENTRY:DriverEntry
If you leave off /WDM and don't initialize pDriverObject->AddDevice
pointer (in DriverEntry) then your driver will be regarded as a
"legacy" non-PNP NT-type driver, loadable as a driver service using
StartService, etc.
There are other things like making sure you are #includ'ing the right
headers and linking in the right .LIBS, but that's the fun part.
I build my driver using VS 2005 IDE with no problems.
-Le Chaud Lapin-
.
- References:
- Re: Compiler bug in the DDK--be aware of it
- From: kalden
- Re: Compiler bug in the DDK--be aware of it
- Prev by Date: Re: USB driver does not start after computer restart
- Next by Date: Re: IRP_MJ_SCSI
- Previous by thread: Re: Compiler bug in the DDK--be aware of it
- Next by thread: Re: Compiler bug in the DDK--be aware of it
- Index(es):
Relevant Pages
|