the resource scripts can be used to include images to the exe (as showed in that sample; also you can use them to carry a menu, pointers to icon images, etc that not appear in that sample), so IDBALL will be a BITMAP that points to an existent file named as you want and formatted as *.bmp; also you should define the IDBALL as an integer number (look at the MAKEINTRESOURCE macro definition, that must use a DWORD integer, you use that macro in the LoadBitmap function, where you use the an HINSTANCE as first parameter, and a pointer to the bmp you want to load). That integer works as an index to the 'object' that contains the bitmap loaded into the exe while the compilation (that's not the exact description). Also you have to compile it in win32 gui mode to avoid those 'function@number' errors.
Niara

For the first error the IDB_BALL defined on the resource should point to a valid *.bmp file, and you should have defined too the IDB_BALL as an integer. The second error will be solved when the function loads a valid bmp into your HBITMAP.
Niara