Re: Add my own bitmaps into a resource file?



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.





--
Posted via a free Usenet account from http://www.teranews.com

.