Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread .rc and .res
Wed, Mar 28 2007 3:49 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

I need to create a resource file containing 3 glyphs (bitmaps) but

"You need to create a resource file with images in resource
type RT_RCDATA"

I've had a bit of help from the component vendor but I'm still stuck.

Anyone have a link where I can read up on these things

So far (after taking an hour to discover you need a blank line at the end of the file) I have

RESOURCENAME QADD "C:\3rdParty\nlhQry\qAdd.bmp"
RESOURCENAME QDELETE "C:\3rdParty\nlhQry\qDelete.bmp"
RESOURCENAME QMENU "C:\3rdParty\nlhQry\qMenu.bmp"


but I don't think this is right yet.

Roy Lambert
Wed, Mar 28 2007 5:10 PMPermanent Link

Dave Harrison
Roy Lambert wrote:

> I need to create a resource file containing 3 glyphs (bitmaps) but
>
> "You need to create a resource file with images in resource
> type RT_RCDATA"
>
> I've had a bit of help from the component vendor but I'm still stuck.
>
> Anyone have a link where I can read up on these things
>
> So far (after taking an hour to discover you need a blank line at the end of the file) I have
>
> RESOURCENAME QADD "C:\3rdParty\nlhQry\qAdd.bmp"
> RESOURCENAME QDELETE "C:\3rdParty\nlhQry\qDelete.bmp"
> RESOURCENAME QMENU "C:\3rdParty\nlhQry\qMenu.bmp"
>
>
> but I don't think this is right yet.
>
> Roy Lambert

Roy,
   If you are using the Image Editor (D7) to create the .res file, then
all file names must be in uppercase. You can check it by running the
Image Editor and opening any Delphi .res file and you'll see the file
names in the tree are uppercase as in "MAINICON". If they're not
uppercase, they won't be found by the program. Cheers!

Dave
Thu, Mar 29 2007 3:14 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Dave


I'm actually using BCC32 because I was told

"You need to create a resource file with images in resource
type RT_RCDATA"

and ImageEditor creates them as RT_BITMAP

Roy Lambert
Thu, Mar 29 2007 11:45 AMPermanent Link

Michael Baytalsky
Roy,

You need to create a simple plain text file with .rc extension
and put the following lines in:

qAdd RCDATA "C:\3rdParty\nlhQry\qAdd.bmp"
qDelete RCDATA "C:\3rdParty\nlhQry\qDelete.bmp"
qMenu RCDATA "C:\3rdParty\nlhQry\qMenu.bmp"

First goes resource name, then type, then file name.
Then compile it into res file.

Regards,
Michael


Roy Lambert wrote:
> I need to create a resource file containing 3 glyphs (bitmaps) but
>
> "You need to create a resource file with images in resource
> type RT_RCDATA"
>
> I've had a bit of help from the component vendor but I'm still stuck.
>
> Anyone have a link where I can read up on these things
>
> So far (after taking an hour to discover you need a blank line at the end of the file) I have
>
> RESOURCENAME QADD "C:\3rdParty\nlhQry\qAdd.bmp"
> RESOURCENAME QDELETE "C:\3rdParty\nlhQry\qDelete.bmp"
> RESOURCENAME QMENU "C:\3rdParty\nlhQry\qMenu.bmp"
>
>
> but I don't think this is right yet.
>
> Roy Lambert
Thu, Mar 29 2007 1:03 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Michael


That's it - thanks

Roy Lambert
Image