artefaktur
software engineer &        architecture

 
 
 
 

acdk_vfile_file2rc

acdk_vfile_file2rc converts a binary file to a byte array in a C file.

Content of this chapter:

   Usage

 Usage

acdk_vfile_file2rc <input filename> <output filename>
Convert binary file <input filename> into a byte array. Sample:

unsigned char ressource_array[] = {
  80,  75,   3,   4,  20,   0,   2,   0,   8,   0,  93, 146, 121,  42,  15, 201, 192, 170, 169,   0,   0
  ,   0, 116,   1,   0,   0,  27,   0,  21,   0,  97,  99, 100, 107,  45,  49,  46,  48,  49,  47,  97,  99
  // and so on
} ;
int ressource_size = 36608;

This C file can be used to include them as ressource files. Please refer to  Embedding archive files into ressources) how to use this local internal file from code.
 
Last modified 2005-05-08 22:30 by SYSTEM By Artefaktur, Ing. Bureau Kommer