afxres.h

This is a discussion on afxres.h within the C++ Programming forums, part of the General Programming Boards category; I have installed win sdk but I still can't find the file afxres.h. Can someone please upload that for me....

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    384

    afxres.h

    I have installed win sdk but I still can't find the file afxres.h. Can someone please upload that for me.

  2. #2
    Registered User antred's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    249
    I really don't think it's as easy as that. afxres.h sounds like an MFC header. Is win sdk supposed to come with its own copy of the MFC libraries? If not then find out where you can download those. If yes then you probably haven't configured your compiler / project settings correctly. There should be an option "Additional include directories" (or something like that) somewhere that allows you to tell the compiler in which directories to search for #included header files. Run a file search on your computer to find out where the MFC stuff has been installed and point your compiler to that directory.

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    384
    I found the file in some distant corner of my PC, but now I can't understand how to use it. I have added the file to the header files of my project but I still get the same error - "cannot open include file 'afxres.h' ". I don't know much about the MFC classes so I don't know how to use them, can you tell me what should I try??

  4. #4
    Registered User antred's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    249
    Which compiler are you using?

  5. #5
    Registered User
    Join Date
    Aug 2011
    Posts
    384
    MSVC 2010 express

  6. #6
    Registered User antred's Avatar
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    249
    Right, then open the "Solution Explorer", right click your C++ project and go to "Configuration Properties" -> "C/C++" -> "General" -> "Additional Include Directories". Select "Edit" and add the path to the directory containing your MFC headers. Beware that you will likely also have to tell the linker where to find any MFC-related .lib files.

    Also note that the Express edition of MSVC2010 doesn't officially support MFC, so getting this to work may still require a lot of fiddling around.

    http://social.msdn.microsoft.com/For...7-4ad0a4291878

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to use the constants in afxres.h
    By Raison in forum Windows Programming
    Replies: 2
    Last Post: 07-04-2004, 10:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21