If you have a old file with complicated dll call that you don't know how to recode for the 600+ MT4 build, you can compile it with an old Build 509 and use the ex4 file :

http://www.filedropper.com/mql4editorbuild509v40024