Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Problem with including resource files in Bloodshed Dev C++ (http://www.programmingforums.org/showthread.php?t=15453)

mattireland Mar 22nd, 2008 10:08 AM

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

Ancient Dragon Mar 22nd, 2008 4:39 PM

Re: Problem with including resource files in Bloodshed Dev C++
 
see some of these resource compiler links

mattireland Mar 23rd, 2008 9:31 AM

Re: Problem with including resource files in Bloodshed Dev C++
 
Sorry, but please can you explain how that helps?

Thanks very much,

Matt. I

Freaky Chris Mar 23rd, 2008 11:11 AM

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"

Ancient Dragon Mar 23rd, 2008 3:58 PM

Re: Problem with including resource files in Bloodshed Dev C++
 
Quote:

Originally Posted by mattireland (Post 142812)
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.

mattireland Mar 25th, 2008 8:19 AM

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

Ancient Dragon Mar 25th, 2008 4:00 PM

Re: Problem with including resource files in Bloodshed Dev C++
 
Quote:

Originally Posted by mattireland (Post 142936)
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


All times are GMT -5. The time now is 1:16 AM.

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