OK, so here is some background. I am upgrading this old program from builder 4. Now, the old program contained custom built components which I can re-build. However, these guys have issues. The components were all made as *.bpl packages which you can later add using Component->add component in the IDE
One of the components has several bitmaps in it. The *.bpl file has a resource file, "rmsctrl.rc" which points to each graphic like this
IDB_LEVEL8 BITMAP "level8.bmp"
and I have picture level8.bmp extracted in my directory.
Now this file has a header that says #include
"Resource.h" at the top of it.
Inside Resource.h I have#define
So now, the main program makes a call using
// Draw stuff on canvas
// Draw RMS values
The package will build. When I place the package on a form, it even shows the bitmap. However, at runtime, it throws the error EResNotFound exception 'Resource 1009 not found'