Hard coding picture on a button

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
esgici
Posts: 4434
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 313 times
Been thanked: 99 times
Contact:

Re: Hard coding picture on a button

Post by esgici » Sat Dec 09, 2017 4:09 pm

esgici wrote:
Sat Dec 09, 2017 12:26 am
But we have a little difference : problem is not BUTTON implementation of HMG, but icon file declared into .rc file; direct definition icon file in BUTTON definition successfully work fine.
And icon file declared into .rc file work fine as icon of .exe :?

Viva HMG :D
Viva INTERNATIONAL HMG :D

RPC
Posts: 127
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Has thanked: 29 times
Been thanked: 7 times

Post by RPC » Sat Dec 09, 2017 6:26 pm

edk wrote:
Sat Dec 09, 2017 1:52 pm
Hi Rajeev.
It's simple, just look into demo.rc file.
There are defined files, whitch should be embedded in your exe file.
Thanks Edward. Very well explained. Now I got it. It was stupid of me to not pay attention to demo.rc file sent by you.
You can check if the files are attached by extracting them from the created exe file, eg using 7-zip.
There should be a ".rsrc" folder with yours files.
I never knew this. Yes I could see the bmp, ico etc files.
Many thanks :D :D :D

RPC
Posts: 127
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Has thanked: 29 times
Been thanked: 7 times

Post by RPC » Sat Dec 09, 2017 6:32 pm

Esgici, thanks to you too for spending your precious time on my problem :D

Post Reply