Re: Add my own bitmaps into a resource file?




"Jamie" <jamie_ka1lpa_not_valid_after_ka1lpa_@xxxxxxxxxxx> wrote in message
news:wglHi.238$ka4.72@xxxxxxxxxxxxxxx
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


Tried that as well Jamie without success.



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

.



Relevant Pages

  • Best way to alpha blend over a bitmap.
    ... I'm writing an app that creates a bitmap of a map. ... Since this is so small I resize it (using NearestNeighbor to retain the ... square to float, constrained by the resolution of the map (I want it to snap ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Grab a frame from cpature device
    ... BOOL success; ... > BITMAP bitmap; ... > long imageSize = bitmap.bmWidthBytes * bitmap.bmHeight; ... CloseHandle(hf); ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: pizza oven
    ... On Jul 22, 4:28 pm, Alessio Sangalli ... Back in Italy the following project got a good success. ... Basically the base would be something like a square of 15" and 3 or 4" ... any local construction store (at least in Europe). ...
    (rec.food.equipment)
  • Re: Grab a frame from cpature device
    ... ISampleGrabber-Interface ... CBitmap* TVideoCapture::GetStillImage ... BITMAP bitmap; ... success = WriteFile(hf, bitmap.bmBits, imageSize, &dwWritten, NULL ...
    (microsoft.public.win32.programmer.directx.video)
  • WTL: Adding bitmaps to a CListViewCtrl using a CImageList
    ... where represents a blue square etc. ... The squares are created as CBitmap:s, and to paint ... them device contexts HDC and CDC are used. ... // Create bitmap and dc that paints in it ...
    (microsoft.public.vc.atl)