DLL extension file

When compiling an mq4 file to ex4 file, how does it affect the extension file. Or better still how can the extension file be compiled to become ex4 file too? I will appreciate an idea for a solution