This utility suite will dump DLG and some other file types to a file allowing you to view them in readable text, and will encode the dumped files back into ITP format. Comes with source. Main difference from Logxen's code - it works. My code was tested on Tony K Battle AI mod - all DLG files were dumped/encoded and were the same up to the last byte!
usage:
"dlgedit -f itpfilename" - dumps ITP file into ascii file
"dlgedit -w asciifilename" - makes ITP file from ascii file
ascii file format differs a little from Logxen's.
code compiled in MSVC 6.0
Sorry, I don't want to maintain ths code further, so feel free to improve it youself