Is anyone else having a problem with SHLoadImageResource? I've tried
both gif and jpg with this call with no luck (get a blank bitmap when they
are loaded). Examples of what I have tried in the resource file:
MYJPG JPG my.jpg
MYJPG IMAGE my.jpg
MYGIF GIF my.gif
MYGIF IMAGE my.gif

Thanks in advance.

Re: SHLoadImageResource by Nelson

Nelson
Fri Oct 22 00:08:44 CDT 2004

Try something like this:

1001 GIF DISCARDABLE "my.gif"

This works fine for me. Hope this helps.

Nelson



> Is anyone else having a problem with SHLoadImageResource? I've tried
> both gif and jpg with this call with no luck (get a blank bitmap when they
> are loaded). Examples of what I have tried in the resource file:
> MYJPG JPG my.jpg
> MYJPG IMAGE my.jpg
> MYGIF GIF my.gif
> MYGIF IMAGE my.gif
>
> Thanks in advance.
>
>



Re: SHLoadImageResource by TJ

TJ
Tue Oct 26 01:27:29 CDT 2004

Thanks for the reply. I tried that before and just to make sure it wasn't
user error I tried it again. Still didn't work right. I'm beginning to think
that it is a resource compiler problem. I noticed that evc 3 doesn't display
the gifs included in the resource file and displays it as "GIF" in the tree
view. This leads me to think that it is an unknown type to evc 3's resource
compiler so it doesn't compile it right. Are you using the code in evc
4/.net? I think that might be the problem I am having. Unfortunately the
SHLoadImageFile call can't load jpeg or gif from the resources only (like
SHLoadDIBitmap can) so that furthers my belief that it is the resource
compiler. BTW the code/resources behave the same under Pocket GCC.


"Nelson" <doomer999@hotmail.com> wrote in message
news:uMNR2U$tEHA.908@TK2MSFTNGP11.phx.gbl...
> Try something like this:
>
> 1001 GIF DISCARDABLE "my.gif"
>
> This works fine for me. Hope this helps.
>
> Nelson
>
>
>
> > Is anyone else having a problem with SHLoadImageResource? I've tried
> > both gif and jpg with this call with no luck (get a blank bitmap when
they
> > are loaded). Examples of what I have tried in the resource file:
> > MYJPG JPG my.jpg
> > MYJPG IMAGE my.jpg
> > MYGIF GIF my.gif
> > MYGIF IMAGE my.gif
> >
> > Thanks in advance.
> >
> >
>
>