Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 22nd, 2008, 11:08 AM   #1
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 210
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Problem with including resource files in Bloodshed Dev C++

Hi,

I've checked the documentation and googled for help but can't find anything. I create a Windows project and to create the menu, I create a header file which I then copy to the default include directory so that the compiler can find it and then I click on File --> New Resource File and then I save it and name it resource.rc but when I type
#include <resource.rc>
, the compiler just returns errors.

Sorry if I'm been really, really noobish but I'd really appreciate help!

Thanks,

Matt. I
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Mar 22nd, 2008, 5:39 PM   #2
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 600
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Problem with including resource files in Bloodshed Dev C++

see some of these resource compiler links
__________________
<<Freelance Programmer>> << Hobby Site>>
Ancient Dragon is offline   Reply With Quote
Old Mar 23rd, 2008, 10:31 AM   #3
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 210
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Re: Problem with including resource files in Bloodshed Dev C++

Sorry, but please can you explain how that helps?

Thanks very much,

Matt. I
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Mar 23rd, 2008, 12:11 PM   #4
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 445
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: Problem with including resource files in Bloodshed Dev C++

IM not entirely sure if this is true, but have notice that Dev-C++ seems to have a problem including custom files from its root path. Instead you should try putting it in the same place as you source files and use
#include "resource.rc"
Freaky Chris is offline   Reply With Quote
Old Mar 23rd, 2008, 4:58 PM   #5
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 600
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Problem with including resource files in Bloodshed Dev C++

Quote:
Originally Posted by mattireland View Post
Sorry, but please can you explain how that helps?

Thanks very much,

Matt. I
Dev-C++ and VC++ 2008 Express both lack a resource editor and a resource compiler. You can create the resource file *.rc by hand if you want to but its a lot easier with a resource editor. Then you need the resource compiler to compile the *.rc file so that it can be attached to the executable program. For more information you need to read about them in the link I gave you.
__________________
<<Freelance Programmer>> << Hobby Site>>
Ancient Dragon is offline   Reply With Quote
Old Mar 25th, 2008, 9:19 AM   #6
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 210
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Re: Problem with including resource files in Bloodshed Dev C++

Thank you very much! Now I understand!

Once the resource is compiled, do I just copy it into the include directory?

Thanks again!

Matt. Ireland
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Mar 25th, 2008, 5:00 PM   #7
Ancient Dragon
PFO God In Training
 
Ancient Dragon's Avatar
 
Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 600
Rep Power: 4 Ancient Dragon is on a distinguished road
Re: Problem with including resource files in Bloodshed Dev C++

Quote:
Originally Posted by mattireland View Post
Thank you very much! Now I understand!

Once the resource is compiled, do I just copy it into the include directory?

Thanks again!

Matt. Ireland
Read this paper
__________________
<<Freelance Programmer>> << Hobby Site>>
Ancient Dragon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resource files for Win32 API Little Mac C 3 Apr 27th, 2006 9:41 PM
Problem with extracting file description from .exe files!!! Pedja C++ 3 Dec 13th, 2005 12:23 PM
Problem with extracting information from .exe files!!! Pedja C# 2 Dec 12th, 2005 4:32 PM
Including files and inclusion guards some1 C++ 11 Nov 28th, 2005 2:02 PM
Including header files some1 C++ 8 Apr 28th, 2005 9:59 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:04 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC