the dvi package should be able to produce DVI files bit-by-bit compatible with what ctex produces.
dvi
ctex