A couple of Visual C++ questions.

Discussion about everything. New games, 3d math, development tips...
Post Reply
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

A couple of Visual C++ questions.

Post by Mad-Mazda »

Q1: Ok ive made a basic program in Visual C++ 2005, but now i want to give the exe an icon, can someone please explain the steps needed to do so.

Q2: In a combo box how can i set the default value.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

Q1: i dont know how it is in 2005, but in 2003 i just simply added to resources and it worked.. (icon.ico)

Q2: dunno but maybe setValue? xD or settext or something after creating it
Image
Image
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Q1: Ok ill give it a go.
Q2: Never mind about that previous question, Im tryin to Make it so the combo box isnt editible.. Eg: so you can only select objects you can type in it. How caould i acheive this.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

combo boxes are never editable are they? :s

i'm not sure about 2005 either but when you set up a project in 2008 it gives you an icon right off the bat which i guess you can just overwrite with your own one. By the looks of it it just has the icon file and a resource.h which i'm not sure what it contains, if anything!

devc++ was always super easy to add an icon to as it was one of the project options.... shame it's a shoddy IDE :'(
Image Image Image
Mad-Mazda
Posts: 20
Joined: Mon Oct 20, 2008 5:44 am

Post by Mad-Mazda »

Yea i found out last night there is an option to make the combo boxs editable or not.

As for the icon, thats what ive done i just replaced the origional with my one... but its still uses the origional for some reason. Thats why i wanted to know how to give a project and icon from scratch.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Maybe you have to rebuild the project? From scratch so clean it then build it? (not sure what the difference between that and rebuild is...)

I tried to drop the icon into my 08 project and didn't pick it up...
Image Image Image
Post Reply