Solved

What 'include' files to use?

Posted on 1998-04-16
4
165 Views
Last Modified: 2013-11-18
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?
0
Comment
Question by:kngh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 30 total points
ID: 1184332
I assume you are talking MFC?  Just AFX.h.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184333
If not MFC.  Standard C++ has "assert" (in lower case) defined in assert.h.  It does not have a trace.
0
 

Author Comment

by:kngh
ID: 1184334
Is in the MFC the only place where TRACE is defined?
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184335
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.
0

Featured Post

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question