Solved

What 'include' files to use?

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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 the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

729 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