Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MFC Dialogs and Header Files

Status
Not open for further replies.

shanlon

Technical User
Dec 4, 2000
24
IE
I've recently made a simple GUI that i want to add extra code to.
I don't want to add the code directly to a button click event ..instead i would prefer if the specific onbuttonclick function called another function to do the work.
This other function is in a different Cpp file that is added to the project.. i also have a header file for this function added which i include in my dialog Cpp file... when i compile the whole project now i get the following error
"unexpected end of file when looking for precompiled header directive".. does anyone know what is wrong?
 
Please try adding the line

#include "StdAfx.h" // precompiled header

as the first include statement for every .CPP file in your project. Please note that it does need to be first; when using precompiled headers, VC++ ignores everything before this line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top