Can you answer this?

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
slowjunkin9
Posts: 2
Joined: September 5th, 2012, 12:21 pm

Can you answer this?

Post by slowjunkin9 » September 5th, 2012, 12:34 pm

Okay so I compiled my own launcher application in Visual Studio but it doesn't have a icon? I can only add a icon to the short cut of it. Is there a way to add a icon to the application itself? When I right click it and go to properties I don't have any option of icon changing just like Read Only and Hidden and that stuff. If you know how to add it please help! Thank you.

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Can you answer this?

Post by LuX » September 5th, 2012, 12:52 pm

Haven't watched lesson 5 of the intermediate series yet, but I think it might be explained there.

Othervise, just look at the Windows.cpp. There should be a class start function where the imported application icon is defined.

You'll probably find a detailed explanation by googling.
ʕ •ᴥ•ʔ

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Can you answer this?

Post by chili » September 5th, 2012, 1:06 pm

You need to create a compiled resource file and add it to the project. It will build the icons into your executable then. Try googling for a free resource editor.
Chili

User avatar
Asimov
Posts: 814
Joined: May 19th, 2012, 11:38 pm

Re: Can you answer this?

Post by Asimov » September 5th, 2012, 3:15 pm

Hi slowjunkin9,

I am attaching the resource editor I use. It is very good, and does the job.
Attachments
xnresourceeditor.zip
(866.77 KiB) Downloaded 219 times
----> Asimov
"You know no matter how much I think I have learnt. I always end up hitting brick walls"
http://www.asimoventerprises.co.uk

Post Reply