C vs C++ Device Driver Question



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


.



Relevant Pages

  • Mulitple Sites
    ... want to view Application1. ... (We have shut down the default website and ... but set to increase) of virtual directories which exist within Site1. ... problems regarding the inheritance of web.config files. ...
    (microsoft.public.inetserver.iis)
  • Re: Python beginner!
    ... Most examples of wxPython use inheritance. ... I would recommend going to ... their website and downloading the demo as it has lots of code to learn ...
    (comp.lang.python)