tags:

views:

92

answers:

3

I have .net dll, i want to convert its content to char array, result will be like this

int Length=10;
unsigned char MyArray[Length] =
{
    0x4D, 0x5A, 0x90, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00
};

for dll this Length may be for example 300000. Do You know any software or other way to do this?

+1  A: 

http://jonripley.com/windows/Software/bin2h/

http://www.koders.com/python/

or google "bin2h" for others.

Tim Sylvester
@Tim: could you tell us how you were able to understand the question?
John Saunders
I don't know, it seemed apparent, I just read it literally. An odd request with a DLL, but whatever. Any doubt about whether I understood the question was eliminated by the example size of 300000 and the example data, which starts with 0x4d, 0x5a or "MZ", which is the first two bytes of all PE images (EXE, DLL, etc.) on Windows.
Tim Sylvester
A: 

write a tool to convertor binary data to c like code,

I have dll, and need to convert char array,
Armen Khachatryan
A: 

END, thank you all, all solved, good bye!

Armen Khachatryan
This would be more suitable as a comment or edit to your question than an answer. You should only add an answer to your own question if you found the solution on your own. You should also describe the solution you ended up with and/or mark one of the answers as "accepted" so that future users with the same question know what you found.
Tim Sylvester