Download MetaTrader 5

DLL from MT4 to MT5

To add comments, please log in or register
Unable to find the answer to your question? Use the search!
Icham Aidibe
10044
Icham Aidibe 2015.03.02 23:24 

Hi

I want to use a dll written for MT4 on a MT5 platform. There's a compatibility issue, but which ? A DLL is a DLL right ?

01: 0x17D70000
00: 0x6C101C42

6C101C54 0F90C1            seto       cl
6C101C52 F7E2              mul        edx
6C101C4D BA04000000        mov        edx, 0x4
 6C101C4B 33C9              xor        ecx, ecx
6C101C48 8B4514            mov        eax, [ebp+0x14]
6C101C46 8B38              mov        edi, [eax]
crash -->  6C101C42 8B5C88FC          mov        ebx, [eax+ecx*4-0x4]
6C101C3F 8B4D24            mov        ecx, [ebp+0x24]
6C101C3C 8B4528            mov        eax, [ebp+0x28]
6C101C36 64A300000000      mov        [fs:0x0], eax
6C101C32 8D442478          lea        eax, [esp+0x78]
6C101C31 50                push       eax
 6C101C2F 33C4              xor        eax, esp
 6C101C2A A10040106C        mov        eax, [0x6c104000]
6C101C29 57                push       edi
6C101C28 56                push       esi
6C101C27 53                push       ebx
6C101C24 83EC68            sub        esp, 0x68
 6C101C23 50                push       eax
6C101C1D 64A100000000      mov        eax, [fs:0x0]
6C101C18 68BC2B106C        push       dword 0x6c102bbc
6C101C16 6AFF              push       0xff
6C101C13 83E4C0            and        esp, 0xc0
6C101C11 8BEC              mov        ebp, esp
6C101C10 55                push       ebp
I can't debug that. ASM ... too much ! I tried to copy paste but too long, so here's the sources files (no errors on compilation) ... who knows ... someone may help !
Files:
Archive.zip 6 kb
Alain Verleyen
Moderator
30743
Alain Verleyen 2015.03.03 10:52  
blouf:

Hi

I want to use a dll written for MT4 on a MT5 platform. There's a compatibility issue, but which ? A DLL is a DLL right ?

I can't debug that. ASM ... too much ! I tried to copy paste but too long, so here's the sources files (no errors on compilation) ... who knows ... someone may help !
No a DLL is not a DLL. MT4 is 32-bits only, MT5 is 32 or 64 bits, and DLL also. You can also have different encoding...
Icham Aidibe
10044
Icham Aidibe 2015.03.03 13:16  
angevoyageur:
No a DLL is not a DLL. MT4 is 32-bits only, MT5 is 32 or 64 bits, and DLL also. You can also have different encoding...
It's a Mt4 code I tried to use on mt5, either 32bits, either 64. In all cases, the asm error.
To add comments, please log in or register