No need for all that. Just convert your icon to an object file (do a forum search for 'windres') and simply import it into your app.
[edit]
More info here...
http://www.blitzbasic.com/Community/posts.php?topic=53338#596434
[/edit]
[edit]
More info here...
http://www.blitzbasic.com/Community/posts.php?topic=53338#596434
[/edit]