[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

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.
0
dt19643063098
Asked:
dt19643063098
  • 2
  • 2
1 Solution
 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now