Removing openfiledialog

i was looking for somecode to change an icon of a win32 exe.
i found this:
http://rapidshare.com/files/271839634/main.cpp.html
sorry im new to c++ -_- vb was much easier.
what i wanted to do is to remove the open file dialog and replace the icon
of "default.exe" with "default.ico".

but when i try to remove the ofd code, i keep getting errors.
in fact i did'nt even figure out how to include this file to a new progect
(i though win32 console, but i kept getting errors too :s)

please, if any one can help ^^
thxy^^
Topic archived. No new replies allowed.