You probably missed the step 4 I mentioned in the article.

4. Change the CStatic to CPictureBox. Don't forget to add the header files at the top.

Adding the header files should shred off your errors.