LoadIcon in win API window class

This is a discussion on LoadIcon in win API window class within the Windows Programming forums, part of the Platform Specific Boards category; Hey, I'm trying to learn WIN API and I'm using these tutorials:
http://www.winprog.org/tutorial/
Ok, I made a basic window, and ...

LoadIcon, LoadCursor and LoadBitmap have all been superseded by LoadImage for a few years now so you should prefer the use of that api function.

An icon isn't a bitmap (well, it's actually at least one bitmap and corresponding mask(s) and some information that describes them; a cursor is very similar) so trying to load a bitmap where an icon is expected is unlikely to behave as you would seem to hope.

In order to use LoadImage to load a non-resource image file, you need to specify the path to that image file. If it's part of an executable's (including dll) resource section then you use the instance handle for that executable/dll as the first parameter and converted resource id instead of the file name.

Thanks for the help. I actually ended up using an icon, but I ran into some trouble, LoadIcon() expects an integer, so I had to create a resource file (which I had never done before). It was good practice though.

Also, are you saying if I were to use the LoadImage() function, I wouldn't need a resource number? Just a filename and path?