Re: How to embedded a hex file into a exe file with Visual C
I dont know if this helps, but hex files are quite easy to parse. Here is the format
Intel Hex 32 Format
The extended 32-bit address hex format is similar to the hex 8 format,
except that the extended linear address record is output also to establish
the upper 16 bits of the data address. This is mainly used for 16-bit core
devices since their addressable program memory exceeds 64 kbytes.
Each data record begins with a 9-character prefix and ends with a
2-character checksum. Each record has the following format:
:BBAAAATTHHHH....HHHCC
where:
BB A two digit hexadecimal byte count representing the number of data bytes
that will appear on the line.
AAAA A four digit hexadecimal address representing the starting address of
the data record.
TT A two digit record type:
00 - Data record
01 - End of File record
02 - Segment address record
04 - Linear address record
HH A two digit hexadecimal data byte, presented in low byte/high byte
combinations.
CC A two digit hexadecimal checksum that is the two's complement of
the sum of all preceding bytes in the record.