not only after stdafx
make sure xxxxx.tmh is the last include
and wppblah.n is the last but one include in the chain else compile
spews lots of nonsensical errors
google jeffrey tippet wpp tracing site:osronline.com
On 10/20/15, David Boyce wrote:
>
>
>>
>> Questions
>> 1. Did I miss anything?
>> 2. Is it okay to change the platform tool set ? (code compiles
>> successfully without WPP)?
>> 3. I need to capture logs when the system goes to connected
>> standby. Is there any other way ?(ETW is complex to implement…i feel)
>>
>> Important Observations:
>> 1. In the configuration manager of the sample project
>> (“DllForDrivers1” ), I can see Win 8.1. winn 8 , win7 under active
>> solution configuration(Both Debug And Release).
>>
>> But in my Dll(MyDLLProj.vcxproj), i could see only debug and
>> release option under configuration manager.
>
> It’s OK to change the toolset to get the correct toolset for the task, but
> you will need to adjust the configuration accordingly.
>
> Your existing project only has the configurations it came with - changing
> its toolset won’t change that. You will need to add the appropriate
> configurations to your project. Use the sample project as a guide,
> remembering to check the props files for the project’s configurations in the
> Property Manager.
>
>> 2. I could see on einclude statement in my project, #include
>> “stdafx.h”. If place my WPP Header files (mytrace.h,myfile.tmh) above
>> this statementy, then I get these
>>
>> warning and lots of errors
>> warning C4627: ‘#include “…\Common.Inc\mytrace.h”’: skipped when
>> looking for precompiled header use
>> warning C4627: ‘#include “mufile.tmh”’: skipped when looking for
>> precompiled header
>>
>> Do I have to suspect stadfx.h ?
>
>
> Your stdafx.h is not the direct cause of those warnings: it’s because you’ve
> moved your WPP headers in front of it.
>
> Your project is being compiled with precompiled headers, and stdafx.h (which
> is the default header file name for this) must be the first #include file in
> your sources.
>
> This needs to be fixed first (move your WPP headers to after #include
> “stdafx.h”).
> This email message has been delivered safely and archived online by
> Mimecast.
> For more information please visit > href=“http://www.mimecast.com”>http://www.mimecast.com
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer