Bos Taurus embedding images in .exe

Moderator: Rathinagiri

Post Reply
User avatar
RussBaker
Posts: 49
Joined: Wed Jul 22, 2015 9:44 am

Bos Taurus embedding images in .exe

Post by RussBaker » Tue Mar 01, 2016 8:07 pm

I'm learning Bos Taurus and it is amazing. Fast and powerful.

I have a "static" image that I need to display when the program is in a certain status.
eg: "Not Found"

In HMG I can compile this into my .EXE so the external file is not necessary.

Can I do the same with an image for BT?
eg: no_photo:= BT_BitmapLoadFile ("nophoto.jpg")

I would prefer the .EXE stand alone without external files.

--Russ

User avatar
bpd2000
Posts: 1080
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Post by bpd2000 » Wed Mar 02, 2016 4:55 am

Hi
You Can do it refer link that shows how to include an image in the .EXE file

http://www.elektrosoft.it/tutorials/hmg ... #resources
BPD
Convert Dream into Reality through HMG

User avatar
RussBaker
Posts: 49
Joined: Wed Jul 22, 2015 9:44 am

Post by RussBaker » Thu Mar 03, 2016 4:05 am

Will the resource file allow Bos Taurus to do this:

no_photo:= BT_BitmapLoadFile ("RESFILE")

User avatar
bpd2000
Posts: 1080
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 96 times

Post by bpd2000 » Thu Mar 03, 2016 9:53 am

Hi
Find working example finished with the help from Dr. Claudio Soto
Attachments
Load from resource.rar
(53.17 KiB) Downloaded 215 times
BPD
Convert Dream into Reality through HMG

User avatar
serge_girard
Posts: 2346
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 589 times
Been thanked: 124 times
Contact:

Post by serge_girard » Thu Mar 03, 2016 4:47 pm

Thanks Dave (&& Claudio)

Serge

Post Reply