What is the difference for dll which run under MT4 and MT5?

There are 2 difference key point:

strings: ANSI(MT4) - unicode(MT5)

datetime: 4 bytes integer(MT4) - 8 bytes integer(MT5)

If you want one dll can be used for MT4 and MT5 at same time, you should write two entry (function).