🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16555

Resource file format for RT_BITMAP

#16555
From: Buster
Date: Wed, 07 May 2003 01:40
23 lines
1649 bytes
I want to put a bitmap in the resources of my .exe file, so that I can
load it using FindResource (with an lpType parameter of RT_BITMAP) and
LoadResource. To do this I'll be using UpdateResource:

BOOL UpdateResource(
  HANDLE hUpdate, // update-file handle
  LPCTSTR lpType, // resource type
  LPCTSTR lpName, // resource name
  WORD wLanguage, // language identifier
  LPVOID lpData,  // resource data
  DWORD cbData    // length of resource data
);

What format should the resource data pointed to by lpData be in?

Apparently this is a completely bizzare thing to want to do, as the
Microsoft docs give no clue, as far as I can see. (The page on
resource file formats gives details on pretty much everything except
bitmaps.)

Thanks for reading

Buster
Technical Details
Message-ID: <3eb863b6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a0b87d58144ccc12,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-06 18:42:06 PST
From: "Buster" <rcopley@ukonline.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Resource file format for RT_BITMAP
Date: Wed, 7 May 2003 02:40:05 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 81.77.157.81
Message-ID: <3eb863b6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052271542 81.77.157.81 (6 May 2003 18:39:02 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail