BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RC Error when building MFC application using IDE BCB6 work f

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
J Crawford
Guest





PostPosted: Sun Aug 15, 2004 1:52 pm    Post subject: RC Error when building MFC application using IDE BCB6 work f Reply with quote



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





PostPosted: Mon Aug 16, 2004 8:03 am    Post subject: Re: RC Error when building MFC application using IDE BCB6 wo Reply with quote



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





PostPosted: Mon Aug 16, 2004 1:52 pm    Post subject: Re: RC Error when building MFC application using IDE BCB6 wo Reply with quote



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





PostPosted: Thu Aug 19, 2004 12:31 pm    Post subject: Re: Update - RC Error when building MFC application using ID Reply with quote

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





PostPosted: Fri Aug 20, 2004 8:33 am    Post subject: Re: Update - RC Error when building MFC application using ID Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.