| View previous topic :: View next topic |
| Author |
Message |
J Crawford Guest
|
Posted: Sun Aug 15, 2004 1:52 pm Post subject: RC Error when building MFC application using IDE BCB6 work f |
|
|
I am getting an [RC Error] : Cannot open file:afxres.h when building MFC
applications. It appears the path commands are not being read correctly. I
have some programs that worked fine in BCB5, but not in BCB6. I have tried
to build some of the examples in BCB6 but get the same error. If I create a
make file from the ide and use the command line make.exe the appliction
builds fine. I am suspecting there is a problem with the ide reading the
xml source for the RFLAGS which have the include path for the MFC include.
I have searched the internet for a possible fix and most of the newsgroups.
Anyone have any ideas ?
Regards
Jay
|
|
| Back to top |
|
 |
Andrue Cope [TeamB] Guest
|
Posted: Mon Aug 16, 2004 8:03 am Post subject: Re: RC Error when building MFC application using IDE BCB6 wo |
|
|
J Crawford wrote:
| Quote: | I am suspecting there is a problem with the ide reading the
xml source for the RFLAGS which have the include path for the MFC
include. I have searched the internet for a possible fix and most of
the newsgroups.
Anyone have any ideas ?
|
Please post the RFLAGS section of your BPR.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
J Crawford Guest
|
Posted: Mon Aug 16, 2004 1:52 pm Post subject: Re: RC Error when building MFC application using IDE BCB6 wo |
|
|
Here is the RFLAGS section of the bpr file for the MFC example Speakn.bpr :
<RFLAGS value="/l 0x409 /d "NDEBUG" /d "_AFXDLL"
/i$(BCB)include;$(BCB)includemfc"/>
"Andrue Cope [TeamB]" <no.spam (AT) spammy (DOT) com> wrote
| Quote: | J Crawford wrote:
I am suspecting there is a problem with the ide reading the
xml source for the RFLAGS which have the include path for the MFC
include. I have searched the internet for a possible fix and most of
the newsgroups.
Anyone have any ideas ?
Please post the RFLAGS section of your BPR.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
|
| Back to top |
|
 |
J Crawford Guest
|
Posted: Thu Aug 19, 2004 12:31 pm Post subject: Re: Update - RC Error when building MFC application using ID |
|
|
I have tried changing the bpl file to modify the includes and rflags in
various combinations with no luck. The only way I can get the ide to build
and run is by moving all of the include files required from the their
subdirectories and placing them in the project directory. It appears as if
none of the resource compiler flags are being passed, at least for the
include file locations.
I have tried creating the application file from scratch and also tried
converting the example using the VC++ converter provided with BCB6 with no
luc.
As I said in my earlier note, if I export a make file for the application
and make if from the command line it builds and runs fine.
I really would like to use the IDE for some of the VC++ applications and not
have to go to the command line to MAKE.
Regards,
Jay
"Andrue Cope [TeamB]" <no.spam (AT) spammy (DOT) com> wrote
| Quote: | J Crawford wrote:
I am suspecting there is a problem with the ide reading the
xml source for the RFLAGS which have the include path for the MFC
include. I have searched the internet for a possible fix and most of
the newsgroups.
Anyone have any ideas ?
Please post the RFLAGS section of your BPR.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
|
| Back to top |
|
 |
Andrue Cope [TeamB] Guest
|
Posted: Fri Aug 20, 2004 8:33 am Post subject: Re: Update - RC Error when building MFC application using ID |
|
|
J Crawford wrote:
| Quote: | I really would like to use the IDE for some of the VC++ applications
and not have to go to the command line to MAKE.
|
There are other issues with the IDE and resource compilation
unfortunately. Sad to day it's one area where the IDE is not very good.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
|