FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour JPG in resources
Posts: 128
Joined: Wed Oct 26, 2005 12:18 PM
JPG in resources
Posted: Thu Nov 23, 2006 02:03 AM

Any way to store JPG images in resources?

Thanks

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
JPG in resources
Posted: Thu Nov 23, 2006 08: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
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
JPG in resources
Posted: Sat Nov 25, 2006 03: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.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
JPG in resources
Posted: Sat Nov 25, 2006 06: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
Posts: 80
Joined: Tue Nov 15, 2005 03:38 PM
JPG in resources
Posted: Sat Nov 25, 2006 07:26 PM

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

Continue the discussion