Hard coding picture on a button

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Hard coding picture on a button

Post by esgici »

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: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: Hard coding picture on a button

Post by RPC »

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: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: Hard coding picture on a button

Post by RPC »

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