|
From: Noviez on 14 Apr 2008 03:18 Hi, Iam very new to wpp tracing.... i created a simple program with just one trace call... the file is givin compilation errors Code: # include <stdio.h> # define WPP_CONTROL_GUIDS \ WPP_DEFINE_CONTROL_GUID(temp, (FF2C5B0C, 70AE, 43b3, BA63, 3757C3A49647), \ WPP_DEFINE_BIT(TRACE_DEBUG)\ WPP_DEFINE_BIT(TRACE_CAT2)) # include "Temp.cpp.tmh" int main(int argc, char** argv[]) { WPP_INIT_TRACING(_T("Dummy")); DoTraceMessage(TRACE_DEBUG, "dsfsd %s", "dummy"); WPP_CLEANUP(); } iam getting the following errors.. TRACE_DEBUG undefined WPP_CALL_Temp_cpp undefine {my file name is temp.cpp} can some help me in solving this issue....
From: Pavel A. on 14 Apr 2008 04:28 "Noviez" <Noviez(a)discussions.microsoft.com> wrote in message news:1232A8AC-415B-4F19-BF5C-0F653ED63C97(a)microsoft.com... > > Hi, > Iam very new to wpp tracing.... i created a simple program with just one > trace call... the file is givin compilation errors > > Code: > > # include <stdio.h> > # define WPP_CONTROL_GUIDS \ > WPP_DEFINE_CONTROL_GUID(temp, (FF2C5B0C, 70AE, 43b3, BA63, 3757C3A49647), > \ > WPP_DEFINE_BIT(TRACE_DEBUG)\ > WPP_DEFINE_BIT(TRACE_CAT2)) > > # include "Temp.cpp.tmh" > int main(int argc, char** argv[]) > > { > WPP_INIT_TRACING(_T("Dummy")); > DoTraceMessage(TRACE_DEBUG, "dsfsd %s", "dummy"); > > WPP_CLEANUP(); > } > > > iam getting the following errors.. > TRACE_DEBUG undefined > WPP_CALL_Temp_cpp undefine {my file name is temp.cpp} > > can some help me in solving this issue.... Please search for this thread in this NG - it discusses use of WPP in usermode. ( though I haven't tried this advice yet) -------------------------------------------------- From: "Ivan Brugiolo [MSFT]" <ivanbrug(a)online.microsoft.com> Sent: Wednesday, March 19, 2008 23:47 Newsgroups: microsoft.public.development.device.drivers Subject: Re: What does the DDK compiler have that the Visual C++ 2005/8 doesn't? ------------------ Regards, --PA
From: Noviez on 14 Apr 2008 08:57 "Pavel A." wrote: > "Noviez" <Noviez(a)discussions.microsoft.com> wrote in message > news:1232A8AC-415B-4F19-BF5C-0F653ED63C97(a)microsoft.com... > > > > Hi, > > Iam very new to wpp tracing.... i created a simple program with just one > > trace call... the file is givin compilation errors > > > > Code: > > > > # include <stdio.h> > > # define WPP_CONTROL_GUIDS \ > > WPP_DEFINE_CONTROL_GUID(temp, (FF2C5B0C, 70AE, 43b3, BA63, 3757C3A49647), > > \ > > WPP_DEFINE_BIT(TRACE_DEBUG)\ > > WPP_DEFINE_BIT(TRACE_CAT2)) > > > > # include "Temp.cpp.tmh" > > int main(int argc, char** argv[]) > > > > { > > WPP_INIT_TRACING(_T("Dummy")); > > DoTraceMessage(TRACE_DEBUG, "dsfsd %s", "dummy"); > > > > WPP_CLEANUP(); > > } > > > > > > iam getting the following errors.. > > TRACE_DEBUG undefined > > WPP_CALL_Temp_cpp undefine {my file name is temp.cpp} > > > > can some help me in solving this issue.... > > Please search for this thread in this NG - it discusses use of WPP in > usermode. > ( though I haven't tried this advice yet) > > -------------------------------------------------- > From: "Ivan Brugiolo [MSFT]" <ivanbrug(a)online.microsoft.com> > Sent: Wednesday, March 19, 2008 23:47 > Newsgroups: microsoft.public.development.device.drivers > Subject: Re: What does the DDK compiler have that the Visual C++ 2005/8 > doesn't? > ------------------ > > Regards, > --PA > > > resolved the above errors... seems that the compilers [debug information format] should be changed to program database[/Zi]
From: Pavel A. on 14 Apr 2008 09:05 "Pavel A." <pavel_a(a)NOwritemeNO.com> wrote in message news:OL1rNkgnIHA.4536(a)TK2MSFTNGP06.phx.gbl... > "Noviez" <Noviez(a)discussions.microsoft.com> wrote in message > news:1232A8AC-415B-4F19-BF5C-0F653ED63C97(a)microsoft.com... >> >> Hi, >> Iam very new to wpp tracing.... i created a simple program with just one >> trace call... the file is givin compilation errors >> >> Code: >> >> # include <stdio.h> >> # define WPP_CONTROL_GUIDS \ >> WPP_DEFINE_CONTROL_GUID(temp, (FF2C5B0C, 70AE, 43b3, BA63, 3757C3A49647), >> \ >> WPP_DEFINE_BIT(TRACE_DEBUG)\ >> WPP_DEFINE_BIT(TRACE_CAT2)) >> >> # include "Temp.cpp.tmh" >> int main(int argc, char** argv[]) >> >> { >> WPP_INIT_TRACING(_T("Dummy")); >> DoTraceMessage(TRACE_DEBUG, "dsfsd %s", "dummy"); >> >> WPP_CLEANUP(); >> } >> >> >> iam getting the following errors.. >> TRACE_DEBUG undefined >> WPP_CALL_Temp_cpp undefine {my file name is temp.cpp} >> >> can some help me in solving this issue.... > > Please search for this thread in this NG - it discusses use of WPP in > usermode. > ( though I haven't tried this advice yet) > > -------------------------------------------------- > From: "Ivan Brugiolo [MSFT]" <ivanbrug(a)online.microsoft.com> > Sent: Wednesday, March 19, 2008 23:47 > Newsgroups: microsoft.public.development.device.drivers > Subject: Re: What does the DDK compiler have that the Visual C++ 2005/8 > doesn't? > ------------------ Addition... This sample works ok with wdk 6001/winxp. You only need to remove these nonexisting includes from testwpp.cpp: #include <nt.h> #include <ntrtl.h> #include <nturtl.h> Regards, --PA
|
Pages: 1 Prev: IRP_MJ_INTERNAL_DEVICE_CONTROL, ioctl codes: 0x0 and 0x1 Next: SDIO CCCR register version bug. |