title: Load jpg file in winapi
body: <p>I want to load a jpg file. I tried to use the <code>LoadImage</code> function but it returns <code>NULL</code> if my image is not bmp. What can I do? Here is my code:</p>
  
  <pre><code>hBitmap =(HBITMAP)LoadImage(0, L"D:\\1.jpg", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE).
  </code></pre>