Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to send trace messages to VS output panel from a native windows service

0 views
Skip to first unread message

Udi Ben Senior

unread,
Aug 24, 2011, 6:35:01 AM8/24/11
to
Hi,
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.
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.
Anyone knows this can be done?
Thanks,
Udi
0 new messages