Why am I getting an assert when I try to Load a bitmap that I have added to the image?



I´m trying to load a bitmap using SHLoadDIBitmap and have added nclient.bmp
to the release folder and added the following to project.bib:

nclient.bmp $(_FLATRELEASEDIR)\nclient.bmp NK S

Then I use this to load the bitmap:

HBITMAP hbmNonClientWidgets=NULL;

hbmNonClientWidgets =SHLoadDIBitmap(L"nclient.bmp");

But SHLoadDIBitmap returns NULL so it does not seem to find the bmp, I
assumed that the bmp is put to the \windows dir on the device so I tried to
load it from there too:

hbmNonClientWidgets =SHLoadDIBitmap(L"\\windows\\nclient.bmp");



But that didn´t work either, am I doing something wrong or?

Regards, Dani


.



Relevant Pages

  • Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
    ... > Then I use this to load the bitmap: ... > But SHLoadDIBitmap returns NULL so it does not seem to find the bmp, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
    ... the remote file viewer cannot connect to the image. ... I have tried to load the bitmap from an extern application using Embedded ... Visual C using the sdk built from my image and the bitmap loaded correctly. ... >> But SHLoadDIBitmap returns NULL so it does not seem to find the bmp, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: VB3 is making my head spin!
    ... > and displaying it pixel by pixel] tell me how. ... compressed bitmap from an original 24 but full colour bitmap that is held on disk as a standard ... It shows you how to load a full colour 24bit .bmp file from disk and count ... Dim z As Long, t1 As Long, t2 As Long ...
    (comp.lang.basic.visual.misc)
  • Re: Loading image byte array
    ... Thanks Frank, I actually got it working myself before I saw your code. ... load the my image like Michael Phillips suggested. ... at that point Then create a Graphics using a fast-access second bitmap (we ... by pixel over to the byte array. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: working with bitmaps in C
    ... It might not work on everything, but it will load the vast majority of BMPs OK. ... If you loadbmp(), then savebmpa 24-bit BMP and then examine the ... Creating test images is not difficult seeing as you are using an OS that comes with a program able to save in the relevant format. ... The format says field sizes should be included, and you skip to the next tag, but actually you are much more likely to get a corrupt field size than a chance occurence of the tag. ...
    (comp.lang.c)