when upgarate wdk driver project oldversion nmake project to vs2012
first use namake2msbuild or vs2012 File-Open-covert Sources/Dirs to upgrate the project to vs2012 vcxproj.
when this step done,I try build the solution.
Because my old driver using WPPTracing,
I got exception " error: (WPPCreateFile)Cannot open file .., error 5"
I read/search about "Using WPP Software Tracing in KMDF Drivers"
but it did not help me to resovle this problem.
finally, I use notepad open the vcxproj file
found :
<ClCompile Include="@(ClSourceFiles)" Exclude="@(ClCompile)">
<WppEnabled>true</WppEnabled>
<WppKernelMode>true</WppKernelMode>
<WppTraceFunction>DoTraceEx(LEVEL,FLAGS,MSG,...)</WppTraceFunction>
<WppScanConfigurationData>..</WppScanConfigurationData>
</ClCompile>
only thing I did is replace .. with trace.h
<ClCompile Include="@(ClSourceFiles)" Exclude="@(ClCompile)">
<WppEnabled>true</WppEnabled>
<WppKernelMode>true</WppKernelMode>
<WppTraceFunction>DoTraceEx(LEVEL,FLAGS,MSG,...)</WppTraceFunction>
<WppScanConfigurationData>trace.h</WppScanConfigurationData>
</ClCompile>
right now, every thing is good.
it took me almost more than 3 hours to try upgrate the nmake project to vs2012 vcxproj.
No comments:
Post a Comment