Solved

What 'include' files to use?

Posted on 1998-04-16
4
154 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now