Including a bitmap in the executable.

Including a bitmap in the executable.

Postby HunterEC » Fri Jun 03, 2011 5:43 am

Guys:

I have the a background as bitmap in a window.
Code: Select all  Expand view
    DEFINE BITMAP oBitMap DISK "logobmp.bmp" OF oWindow
 

How can I include it in the executable instead of a separate file on disk ? Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Including a bitmap in the executable.

Postby anserkk » Fri Jun 03, 2011 7:22 am

In your .RC File

Code: Select all  Expand view
Login128x128 BITMAP DISCARDABLE "Images/Login128x128.Bmp"


In your .PRG

Code: Select all  Expand view
@ 1.5, 24.5 BITMAP oBmp RESOURCE "Login128x128" NOBORDER of oDlg


Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests