title: (Visual C++) Loading JPG resources
body: <p>I've added a section called JPG with a image whose ID is a constant named LOGO.
  For loading it, I've tried to create a CBitmap like this:
  CBitmap resource;
  resource.LoadBitmapW(LOGO);
  Although it fails badly (returns zero and for some reason GetLastError() doesn't get filled with an error code).
  How can I load the JPG images from resources to (hopefully) get an HBITMAP so that I can load it into a CStatic frame?</p>