JPG in resources

Post Reply
User avatar
César E. Lozada
Posts: 128
Joined: Wed Oct 26, 2005 12:18 pm
Location: Los Teques, Miranda, Venezuela

JPG in resources

Post by César E. Lozada »

Any way to store JPG images in resources?

Thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 :-(
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Hathal,

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

???
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
HATHAL
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh
Contact:

Post by HATHAL »

Antonio.
I Sent you link the source.
Open your e-mail now.
regards,
Hathal.
Post Reply