C vs C++ Device Driver Question
- From: "decoder" <rcg_golf@xxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 17:39:15 -0800
On the MS website: http://www.microsoft.com/whdc/driver/kernel/KMcode.mspx
it points out the many pitfalls of developing a kernel mode driver using C++
(classes, inheritance etc.).
If it presents so many problems to use C++, why do the AVStream samples use
C++ classes?
For example in C:\WINDDK\3790.1830\src\wdm\avstream or
C:\WINDDK\6000\src\AVStream, the sample
files provided by MS contain C++ classes, and use inheritance!!
Since especially the avshws sample is targeted for eventual use with
hardware( it is pin-centric, shows how to
do DMA etc.), why is it not written in C, like the bulkusb sample for
example?
What does the community think about using C++ in kernel mode drivers?
Thanks
-decoder
.
- Follow-Ups:
- Re: C vs C++ Device Driver Question
- From: m
- Re: C vs C++ Device Driver Question
- From: Ray Trent
- Re: C vs C++ Device Driver Question
- Prev by Date: Re: usb read, bytesRead is zero, but data is there
- Next by Date: NdisMCoIndicateReceiveNetBufferLists not working with NDIS_RECEIVE_FLAGS_RESOURCES flag
- Previous by thread: Re: Unable to load driver compiled with Visual Studio 2005
- Next by thread: Re: C vs C++ Device Driver Question
- Index(es):
Relevant Pages
|