With this tool you can embed a (binary) file into your application.

Download and install

You can get the tool here.

How to create header file

Start ConvertToH.

Browse for a file you want to embed.
The tool creates a classname and an output filename for you, change it if you want to.
Click Convert to start conversion.

The header file will be in the same folder as the original file.

How to use the header file

See the following code for an example of how to extract the file embedded in the header file:

#include "ConvertToH.h" // This should be the header file created with the tool

void main(void)
      CConverttohFile MyFile; // Create an object of the created class
      if(!MyFile.ExtractFile("c:\test.exe"))printf("Unable to extract file");

If you have any question, please contact me.