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



I'm no expert on loading bitmaps, but:

1. What do you mean by " I assumed that the bmp is put to the \windows
dir", why don't you check to make sure that it is there? You can use
windows explorer or the remote file viewer.

2. What is the assert that you want us to tell you about?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member


"Daniel Mattsson" <danmat378852@xxxxxxxxxxxx> wrote in message
news:eG3NK53SFHA.1044@xxxxxxxxxxxxxxxxxxxxxxx
> 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?
    ... 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)
  • 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: System.Drawing.Bitmap.Bitmap() Error
    ... Bitmap bmp = new Bitmap; ... there is no public parameterless constructor for the ... Bitmap, ... You are assigning the return value from the "GetImage" method of whatever ...
    (microsoft.public.dotnet.general)
  • 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)
  • Spash screens in a Access 2003 application. How?
    ... I have a BMP file, with the same name as the application, in the folder where the app resides. ... The application also has user level security. ... Create a bitmap (bitmap: A picture made from a series of small dots, much like a piece of graph paper with certain squares filled in to form shapes and lines. ... Using Microsoft Windows Explorer, create a shortcut for your application by clicking File, pointing to New, and clicking Shortcut. ...
    (comp.databases.ms-access)