I got it to work by using the .res at the linking stage.

So I've now successfully worked out how to compile, the program via command-prompt, specifying the name, and having the correct icon.

Thanks for all your help.

Now, any ideas on how I can do this within my C++ code?

Thanks in advance,