How Trace in dll project??

  • Thread starter Thread starter aimslife
  • Start date Start date
A

aimslife

Hi,

I created simple DLL project using vs2k5. I need to print debug statements
in ouput window during debug mode. I tried to use TRACE macro in project and
include windows.h header file but TRACE macro not work. Is there any similer
way to print debug statement in simple dll??

Regards,
-aimslife
..
 
I created simple DLL project using vs2k5. I need to print debug statements
in ouput window during debug mode. I tried to use TRACE macro in project and
include windows.h header file but TRACE macro not work. Is there any similer
way to print debug statement in simple dll??

The recommended trace macro facility is now ATLTRACE2, however I
believe the older TRACE macros should have worked so I don't
understand why they haven't. Ultimately any such trace macros usually
end up calling OutputDebugString, which is the API responsible for the
debug output.

Dave
 
Back
Top