JPG in resources

JPG in resources

Postby César E. Lozada » Thu Nov 23, 2006 2:03 am

Any way to store JPG images in resources?

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

Postby Antonio Linares » Thu Nov 23, 2006 8:21 am

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
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HATHAL » Sat Nov 25, 2006 3:22 am

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
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh

Postby Antonio Linares » Sat Nov 25, 2006 6:22 pm

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
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby HATHAL » Sat Nov 25, 2006 7:26 pm

Antonio.
I Sent you link the source.
Open your e-mail now.
regards,
Hathal.
User avatar
HATHAL
 
Posts: 77
Joined: Tue Nov 15, 2005 3:38 pm
Location: The Kingdom Saudi Arabia -Riyadh


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 62 guests