Page 1 of 1

JPG in resources

Posted: Thu Nov 23, 2006 2:03 am
by César E. Lozada
Any way to store JPG images in resources?

Thanks

Posted: Thu Nov 23, 2006 8:21 am
by Antonio Linares
César,

In your RC:

#define RCDATA 10
name RCDATA "YourJpeg.JPEG"

From your application:

#define RT_RCDATA MAKEINTRESOURCE(10)
local hRes := FindResource( GetResources(), "name", RT_RCDATA )
local hGlobal := LoadResource( GetResources(), hRes )

Now we have the JPEG in memory, next is to convert it into a hBitmap. We still don't know how :-(

Posted: Sat Nov 25, 2006 3:22 am
by HATHAL
Hi. All
I had arrived at work results in the loading Jpg to the screen.
See the link below.
http://fivetechsoft.com/forums/viewtopic.php?t=4981
regards,
Hathal.

Posted: Sat Nov 25, 2006 6:22 pm
by Antonio Linares
Hathal,

There is no source code at http://www.livesystem.net/fwh/Image_jpg_gif.zip

???

Posted: Sat Nov 25, 2006 7:26 pm
by HATHAL
Antonio.
I Sent you link the source.
Open your e-mail now.
regards,
Hathal.