You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm.... This is strange. For us, all the sample drivers compile. Let me investigate this issue. It is not clear to me why it was not working for you.
Thank you for the information.
Hmm.... This is strange. For us, all the sample drivers compile. Let me investigate this issue. It is not clear to me why it was not working for you. Thank you for the information.
All of the sample drivers do work fine for me.
It is when I create my own new KMDF [DMF] driver project from scratch that I have to add that undocumented config to the project file.
Maybe this is an issue with the WDK templates rather than DMF? In none of my DMF projects do I need to add this snippet, it should be compatible with WPP in project skeletons out of the box. Maybe share your complete demo project, if you can (anonymised ofc.).
I wanted to learn how to create a DMF project, so I:
Dmf.props
into my KMDF DMF project following the [IMHO important but very buried] instructions at:https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#simplifying-compilation-and-linking-with-dmf
https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md#using-dmf-in-a-driver-that-does-not-have-a-deviceadd-callback
Roughly...
I diffed my project with the DmfSamples and found that the DmfSamples had this:
I had my own
Trace.h
from the template.But what was this "DmfInterface.tmh"?
It took me about half a day to this nugget of goodness in all of the DmfSample projects:
I also learned something new: WPP
I think this
ClCompile Wpp
section needs to be in the documentation at:https://github.com/Microsoft/DMF/blob/master/Dmf/Documentation/Driver%20Module%20Framework.md
The text was updated successfully, but these errors were encountered: