Download MetaTrader 5

unresolved import function call DLL

To add comments, please log in or register
Trade like successful traders - subscribe to their signals!
Naser Ghannad
9867
Naser Ghannad 2014.07.03 03:10 

Hi

DLL with EA work Well in my pc (i test it in two metatrader and no problem) but i get error in my vps !

i put DLL in right place see image, but MT4 can't load DLL or Call it.

unresolved import function call cannot call

call DLL :


#import "demo.dll"
   int Account_check(int acc,int acc2);
#import



and this is  CPP

MT4_EXPFUNC int __stdcall Account_check(int acc,int acc2)
  {
      if (acc==acc2) return(1);
   return(0);
  }

Nick Rios
199
Nick Rios 2014.07.03 23:18  

You could try putting the dll on another location as described here:

https://www.mql5.com/en/docs/runtime/imports.

Documentation on MQL5: MQL5 programs / Call of Imported Functions
Documentation on MQL5: MQL5 programs / Call of Imported Functions
  • www.mql5.com
MQL5 programs / Call of Imported Functions - Reference on algorithmic/automated trading language for MetaTrader 5
Naser Ghannad
9867
Naser Ghannad 2014.07.05 14:24  
midnightwalker0:

You could try putting the dll on another location as described here:

https://www.mql5.com/en/docs/runtime/imports.

hi dear

it's not work.

i can use other DLL but when i compile it with Visual C++ it's not work !

how can i compile my DLL to work well in Mql4?

best

Laszlo Tormasi
2734
Laszlo Tormasi 2014.07.06 21:19  

Check the dependencies http://prntscr.com/400oez

Maybe an another DLL is missing from the VPS.

Naser Ghannad
9867
Naser Ghannad 2014.07.07 08:53  
lost89:

Check the dependencies http://prntscr.com/400oez

Maybe an another DLL is missing from the VPS.

Hi dear

i don't think it can be the problem

because it is an example i download it (DLL +source code), that DLL work well

but with same source code when i compile it not work !! (i compile it with Visual C++)

best

Laszlo Tormasi
2734
Laszlo Tormasi 2014.07.07 10:28  
Did you just simply compile the cpp without def file?
To add comments, please log in or register