Re: Add my own bitmaps into a resource file?



Somebody wrote:

"Somebody" <Some@xxxxxxxxx> wrote in message news:46edbfe4$0$16320$88260bb3@xxxxxxxxxxxxxxxxxxxx

Works splendidly using.

mybitmap.LoadFromResourceName(hinstance,'myresource');

However, I am using G-Soft's FastLIB
http://www.torry.net/authorsmore.php?id=1117 and I can't get it to work with that. I just end up with a blank square which makes me think it's not loading the appropriate image.

fastimg1.bmp.LoadFromRes(hInst:Cardinal; ResID:PAnsiChar; ResType:PAnsiChar);

is what it's asking for so I'm entering

fastimg1.bmp.LoadFromRes(hinstance,'abcdef','bitmap');
fastimg1.repaint;

abcdef is the resource file name. bitmap is the actual word "bitmap".
Even if you don't know this package am I using the correct syntax or barking up the wrong tree?

Thanks for any pointers.


I also tried rt_bitmap in place of the word 'bitmap' without success.



The NAME has to be all in CAPS!
upper case only ..
no lower case.


--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: Window Resize Lost On Re-Open
    ... Upper right of screen in blue area you have a minus sign which is "minimize" ... then either a square or 2 squares which is "Maximize" and "Restore Down" ... Close down all windows first. ...
    (microsoft.public.win2000.general)
  • Re: average value of matrix within a matrix
    ... square with the 6 in the upper left corner, ... Two syllables, tops. ... -- Laurie Anderson ...
    (comp.soft-sys.matlab)
  • Re: Please Help!!!!
    ... Use the mouse to select A1:A2 and drag the fill handle (little square in ... Please turn off caps - that is considered shouting in newsgroups! ... TO LONG HOW IT WORKS, I JUST WANNA DO A SIMPLE TASK, I WANNA KNOW IF ...
    (microsoft.public.excel)
  • Re: Add my own bitmaps into a resource file?
    ... I am using G-Soft's FastLIB ... I just end up with a blank square which makes me think it's not ... barking up the wrong tree? ... Posted via a free Usenet account from http://www.teranews.com ...
    (comp.lang.pascal.delphi.misc)
  • Re: Irrationality and the Fundamental Theorem of Arithmetic
    ... Being a geometric proof, it's best ... Draw a square of side n, and put a square of side m in ... This creates three squares along the upper left to lower right ... one in the middle, where the two m-squares overlap, ...
    (sci.math)