Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linking Issues

Posted on 1998-06-30
5
Medium Priority
?
196 Views
Last Modified: 2010-05-18
How do I resolve a linking error of an unresolved external of endthreadex.  I have an application that just includes AFX.H and IOSTREAM.H with a COUT and I get the linking error everytime.
0
Comment
Question by:dt19643063098
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
rayb earned 200 total points
ID: 1166945
If you are including the AFX.H file, you must link in the MFC libraries as well.  This can be done on the General tab of the project settings property sheet within DevStudio.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166946
Can you have an MFC console application?  You can only have "cout" in a console application.  And I have never heard of an MFC console application--although it may be possible.  
0
 

Author Comment

by:dt19643063098
ID: 1166947
Right On I am new to C++ and that was what I needed.

0
 
LVL 2

Expert Comment

by:rayb
ID: 1166948
While you cannot utilize the application framework to create an MFC console application, you can include many of the utility classes such as CString just as dt19643 has done.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1166949
I see.  Thanks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

810 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