title: Retrieving a resource file from an exe
body: <p>I'm wrapping files with Visual C++ 2008, I've figured out how to embed them but I can't figure out how to retrieve them.  I have some C++ experience, but none with Win32 or Visual C++.  The goal of the wrapping is to run some code, and then if everything okay it can run the embedded file.</p>
  
  <p>I'm wrapping many different files, so code reuse is key, and in all cases I won't know the name of the embedded file.  But I could name the exe the same as the wrapped file, so if the program can get the name of itself that'd work too.</p>
  
  <p>Some of the wrapped files will be exes, and the others will be files meant to be run by an external program.</p>
  
  <p>Edit: These files are being embedded with a .res file, they're not just concatenated to the end of the exe.</p>