Results 1 to 3 of 3

Thread: MFC missing???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    MFC missing???

    Im missing afxres.h, and it says I need it (its in a resource file)...I did some research online and it says its part of MFC even though Im not using mfc...I tried installing it but couldn't find the option anyone else have a solution (I don't need MFC, I just need to get rid of the error)


  2. #2
    AnT
    Guest
    From http://www.winprog.org/tutorial/errors.html:
    Fatal error RC1015: cannot open include file 'afxres.h'.
    Oddly enough, VC++ adds afxres.h to resource files even when you aren't using an MFC project, and yet the file may only be installed if you install MFC. This perticular file isn't actually required, so to fix the error you can edit the .rc file in notepad and replace both occurances of "afxres.h" with "winres.h" (note that there should be two of them, and you need to change both).
    Hope this fixes your problem.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    it gave me the same error for winres.h

    I had to reinstall VC++...thanks though

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width