Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, Is there any macro

Status
Not open for further replies.

sskumar

Programmer
Joined
Sep 12, 2002
Messages
36
Location
US
Hi All,
Is there any macro equivalent to TRACE()/ ATLTRACE2(..) to send values to output window. The problem is TRACE MACRO requires MSVCRTD.lib to be included, But if use this macro in a DLL which is static, Multithreaded ir gives Link error WinMain already defined in MSVCRTD.lib.

IS there ANY equivalent macro to TRACE(...)

I am expecting ur earlier response...
Thanks,
S.Senthil Kumar
Chennai, INDIA.
 
It is not a macro as such - it is just a subroutine call

OutputDebugString(const TCHAR*);

Just _stprintf (or sprintf if you are not using Unicode) your string and use it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top