This webapp reads the selected file and displays the content in hexadecimal. The prefix, suffix, separator and line length is configurable. You can generate hex dumps to be used directly in C/C++ by setting "0x" as prefix and "," as separator.
This will work in browsers supporting HTML5 FileReader API and typed arrays.
Tested with Firefox 4 and Google Chrome 11.