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\)" <beitmannospam@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 09:58:59 -0400
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
>
>
.
- References:
- Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- From: Daniel Mattsson
- Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Prev by Date: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Next by Date: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Previous by thread: Re: Why am I getting an assert when I try to Load a bitmap that I have added to the image?
- Next by thread: Debug image boot problem.
- Index(es):
Relevant Pages
|
|