Re: [Dev-C++] Newbie Question: Writing Ouput to the Debug Window
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Chris S. <csh...@qu...> - 2005-06-09 12:49:41
|
Hi, No I haven't added either of these headers--shouldn't I get a compile error? I'll try adding them and see what happens. Thanks, Chris Guillermo Gutierrez wrote: > Just a guess from an observer but, out of curiosity, since this is a WIN32 API call have you included the windows.h and maybe the winbase.h header files? > > ex: #include <windows.h> > #include <winbase.h> > > if you have, forgive my uninformed suggestion. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Chris > Share > Sent: Thursday, June 09, 2005 3:42 AM > To: Per Westermark > Cc: dev...@li... > Subject: Re: [Dev-C++] Newbie Question: Writing Ouput to the Debug > Window > > > Hi, > > Thanks for your help. > > I've tried adding the following code to my program however it doesn't > seem to be doing anything: > > LPCTSTR lpsz = "Hello!"; > OutputDebugString(lpsz); > > What am I missing? > > Cheers, > > Chris > > Per Westermark wrote: > >>You may use the Win32 API: >>OutputDebugString(LPCTSTR lpsz); >>to emit debug messages. >> >>For just looking at the debug output, a really great program is DebugView >>which you can retrieve from >>http://www.sysinternals.com/Utilities/DebugView.html >> >>/Per W >> >>On Wed, 8 Jun 2005, Chris Share wrote: >> >> >> >>>Hi, >>> >>>I'm interested in moving my development work from Visual Studio to >>>wxDev-C++. >>> >>>In VS I've been using TRACE to output to the debug window and find this >>>very useful. I've had a look through wxDev-C++'s online help but can't >>>find any mention of how to do this. >>> >>>Is there something equivalent to TRACE in wxDev-C++? >>> >>>Cheers, >>> >>>Chris >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput >>>a projector? How fast can you ride your desk chair down the office luge track? >>>If you want to score the big prize, get to know the little guy. >>>Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 >>>_______________________________________________ >>>Dev-cpp-users mailing list >>>Dev...@li... >>>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >>> >> >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |