Compilation problems
by Sebastiao P. de Almeida · in General Game Discussion · 08/07/2003 (6:16 am) · 7 replies
Hello there,
I just bought the Reaction Engine, but when I try to compile the demos I get a "cannot open include file 'afxres.h'"
I searched my entire computer for this file and can't find it. Any clue?
This file is included with a .rc in each demo project. I'm using
MSCV++ 6.0.
I just bought the Reaction Engine, but when I try to compile the demos I get a "cannot open include file 'afxres.h'"
I searched my entire computer for this file and can't find it. Any clue?
This file is included with a .rc in each demo project. I'm using
MSCV++ 6.0.
#2
08/07/2003 (7:59 am)
Nevermind, I found the problem. I did not installed the MFC files with MSVC.
#3
BTW there shouldn't be any MFC dependencies. This is might some sneaky way Microsoft uses to get you to include MFCs on install. If anyone knows more about this, I'd love to hear about it.
Chris
08/07/2003 (9:10 am)
Well that was easy for me ;)BTW there shouldn't be any MFC dependencies. This is might some sneaky way Microsoft uses to get you to include MFCs on install. If anyone knows more about this, I'd love to hear about it.
Chris
#4
T.
08/07/2003 (9:27 am)
Afxres.h just defines standard resource defines, such as IDOK and IDCANCEL. It is part of MFC but can pretty much be used without MFC. The resource editor in VC6 will auto add the #include for afxres.h. Not sure if there's any way around it.T.
#5
08/11/2003 (8:21 pm)
What you can do is to include a afxres.h file into the project that way the include still works with or without mfc.
#6
This include is cynically included my Microsoft when using the project wizards to generate code, as I assume was done for the demo.
If you're like me and allergic to MFC, and really, really don't want to install MFC this is easily fixed:
Just edit the .rc file and change the line
#include "afxres.h"
to
#include "windows.h"
Voila. No need to soil your hard drive with MFC.
--- Kevin
06/27/2005 (12:20 pm)
> fatal error RC1015: cannot open include file hilite">afxres.hThis include is cynically included my Microsoft when using the project wizards to generate code, as I assume was done for the demo.
If you're like me and allergic to MFC, and really, really don't want to install MFC this is easily fixed:
Just edit the .rc file and change the line
#include "afxres.h"
to
#include "windows.h"
Voila. No need to soil your hard drive with MFC.
--- Kevin
#7
Thanks
Jeff
08/29/2007 (12:31 am)
With the C++ 2005 version I downloaded, there is no MFC component option, and I do get this message every time I complile. If I decide to get MFC (although I have done your fix Kevin), is there somewhere I can download it?Thanks
Jeff
Torque Owner Sebastiao P. de Almeida