Ok, I'll try and explain it a little better ;)
The code I mentioned above is for changing the icon within the B+ application title bar itself, not the exe.
To change the exe icon, I use ResHack which is a Win32 file utility. You can find it
hereYou need to have your icon prepared then do the following...
Open your exe in ResHack
Select 'Action' then 'Add a new resource'
Select your icon and fill in the empty fields with 'ICON'
Save the exe
To change the icon on the B+ application title bar...
Prepare your icon file and save it in the application folder.
Now make two text files using notepad...
.lib "user32.dll"
SetClassLongA%(hWnd%,nIndex%,Value%):"SetClassLongA"
Save the above text as 'user32.decls' and place it in your B+ userlibs folder.
.lib "shell32.dll"
ExtractIconA%(hWnd%,File$,Index%):"ExtractIconA"
Save the above text as 'shell32.decls' and place it in your B+ userlibs folder.
Now restart B+ and add this code to your B+ application source after creating your window...
icon=ExtractIconA(QueryObject(window,1),"youricon.ico",0)
SetClassLongA(QueryObject(window,1),-14,icon)
'window' is the name (handle) you used when creating the window...
i.e. window=CreateWindow(title$,x,y,width,height[,group[,style]])
'youricon.ico' is the name of your icon file.
Voila :)