You don't have have to call MAKEINTRESOURCE(), just pass in IDI_APPLICATION directly and NULL instead of hInst.

LoadIcon function (Windows)

gg