views:

375

answers:

2

Preferably using C++. Or a tool I can use from the command line. So far I've figured out how to extract icons from .exe files, but I can't set icons... Any suggestions?

+2  A: 

If you want an icon to show in Explorer in a directory list, you'll need to add an icon to your app's .rc file. It must be the first icon in the resource file.

Do you want an icon to appear in the task bar and have it associated with your app's window? In this case you must set the hIcon member in your registered WNDCLASS structure.

Steve Folly
+2  A: 

Here's a code sample that might help:

ars
Just what I was looking for, thanks.
Lin