[haiku-3rdparty-dev] Re: resource files in 64-bit haiku
- From: waddlesplash <waddlesplash@xxxxxxxxx>
- To: haiku-3rdparty-dev@xxxxxxxxxxxxx
- Date: Fri, 13 Sep 2019 18:59:11 -0400
On Fri, Sep 13, 2019 at 10:48 AM William Kocay <wkocay@xxxxxxxxxxxxxxxx> wrote:
Hello,
I am porting a 32-bit application to 64-bit Haiku.
I have a bitmap stored in a resource file.
I load the bitmap using FindResource().
It works in 32 bits.
But in 64 bits it returns NULL.
How can I load it?
--William Kocay
The binary resource formats are slightly different. Use the
architecture-independent "rdef" format (you can convert RSRCs into
RDEFs using "rc -d"), which is compiled into a platform specific RSRC
using "rc", also.
-waddlesplash
Other related posts: