title: Portable load pe from resource c++
body: <p>I have been trying to figure this out forever.  I need to load a PE from memory in c++ but I can't get it to work on xp/win vista/win 7/win 8 /32 bit / 64 bit.</p>
  
  <p>No this is not for malicious purposes.  Does anyone know why this would only work for a certain OS if I am building a win32 console app?</p>
  
  <p>What are some of the reasons that cause this?  Is there a solution?</p>