Link to home
Start Free TrialLog in
Avatar of kngh
kngh

asked on

What 'include' files to use?

Can anyone tell me what definition files to include in order be able to use 'ASSERT' and 'TRACE'?
Is there a comprehensive list anywhere which tells you what 'include' files contain what definitions?
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

If not MFC.  Standard C++ has "assert" (in lower case) defined in assert.h.  It does not have a trace.
Avatar of kngh

ASKER

Is in the MFC the only place where TRACE is defined?
The ONLY place?  probably not.  But it is not defined in the standard C, C++, or STL files.  That is, it is not "part of" C++.  (assert() (in lower case) is part of C and C++.)  There may be other libraries that define trace (they may or may not define it to do what you want.)  But I don't know of any.  If you are not working in MFC you can probably duplicate its function easily.  Assuming the MFC trace does what you want, you may be able to copy it out of the include files and get it to work without MFC.