Linking Issues

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.
dt19643063098Asked:
Who is Participating?
 
raybCommented:
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
 
nietodCommented:
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
 
dt19643063098Author Commented:
Right On I am new to C++ and that was what I needed.

0
 
raybCommented:
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
 
nietodCommented:
I see.  Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.