Solved

What 'include' files to use?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

747 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

9 Experts available now in Live!

Get 1:1 Help Now