I have installed win sdk but I still can't find the file afxres.h. Can someone please upload that for me.
I have installed win sdk but I still can't find the file afxres.h. Can someone please upload that for me.
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.
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??
MSVC 2010 express
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