Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: "Daniel Mattsson" <danmat378852@xxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 01:10:18 +0200
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
.
- Follow-Ups:
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Bruce Eitman \(eMVP\)
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Matthew Inglis
- Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Prev by Date: CE5.0 & DirectX8
- Next by Date: Re: 2 COM ports
- Previous by thread: CE5.0 & DirectX8
- Next by thread: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Index(es):
Relevant Pages
|
|