Test MFC.sln won't compile, VC++ Express

The "Test MFC.sln" project installed in "My Documents" when I installed VC++ Express.  When I try to compile it I get an error


Error: Additional include file afxhh.h not found

FWIW, I do have the Microsoft Platform SDK installed and I did make the changes to the directories and such that the instructions recommend.

Am I missing something

Thanks.

Thomas

 



Answer this question

Test MFC.sln won't compile, VC++ Express

  • kismath

    Hi,

    I suspect that the project contains some MFC related codes. Note that MFC (and ATL) is not part of Visual C++ 2005 Express Edition (VCEE). Such a framework is part of Microsoft proprietary domain. As far as I know, VCEE is downloadable at no charge mainly in order for students and hobbyists to learn the basics of standard C/C++ library usage and pure Windows API programming .

    Hope this helps.


  • developer-Stu

    The express edition doesnt come with 32bit libraries for ATL and MFC. It comes with 64bit libraries only.

  • Dr. eX

    About Visual C++ 2005 Express Edition (EE) and Sample Codes:

    Hi there,

    Let me start by saying that I am not responsible for defining what EE is  all about. Microsoft advises us to download PSDK separately if we want to learn about Windows API programming. However, they  do not mention  about  how  Windows API programming  actually relates to C++ basics.  We have to learn how, of cource. They do not have to.

    Microsoft provides us with VC++ sample codes (see http://msdn2.microsoft.com/en-us/library/1370z17c.aspx). I really appreciate them. Believe it or not, I could compile some of them. Many people are advertizing that those sample codes are intended to help 64-bit world residents to grow. I checked some of them,  and  very happily  found out that none-ATL or none-MFC based samples can be compiled by changing build modes from Itanium to Win32. For example, try this (http://msdn2.microsoft.com/en-us/library/xs6aek1h.aspx).

    In addition, this set of sample codes (http://msdn2.microsoft.com/en-us/library/928ktef5.aspx) will be hopefully compiled without problems (sorry to add that I have not tried all of them!). Those sample codes are called Standard Template Library (STL) applications as you already know. The concepts of STL codes basically come from standard C++ committee. Dr.Bjarne Stroustrup amost always emphasizes that  C++ beginners start from STL, not from C-style coding. He also repeats that we should learn concepts and styles first, not technical details. In this context, I would say that EE gives us a chance to learn C++ basics. I am very happy in this respect with EE!

    Hope this helps.




  • DanielRehn

    I am having the same issues as you, Thomas.  And, yes, Mr. Toyota, you are correct in assuming that I, for one, do have the express edition of the code. 

    However, in the download instructions, it has you download a version of MFC, along with the Microsoft SDK, and the solutions given as sample code from which to learn, use the MFC.  So either someone has not put out enough of the MFC for the student/hobbyist training theory to work in the Express Edition, or they need to review their samples, and create a subset that only uses the tools/resources they wish for the student/hobbyist to learn/have, and provide that listing somewhere.

    Non-working demos are not typically a good marketing device or training tool.

    Assistance anyone

    Thanks,

    Stace


  • Kiran Sattenapalli

    I am experiencing the the same problem(Error: Additional include file afxhh.h not found), ans I am using Visual studio professional addition. Am I missing something

    Tia
    Jon Jenkins

  • Bliszek

    I think that these samples may illustrate the use of 64-bit MFC/ATL that are included in Platform SDK. However, Visual Studio Express cannot compile 64-bit code. Platform SDK is intended not only for Express Edition, but also for other versions. Besides, Platform SDK is not a compiler, only headers, libraries and documentation.

  • newtovisualc

    Visual C++ does not come with any versions of MFC or ATL. The platform SDK does come with old 64-bit versions of these libraries: these are a holdover from the days when the only way to get a 64-bit compiler was from the PSDK.

  • Test MFC.sln won't compile, VC++ Express