Publi
|
Iniciado por
soro111
hola alguien sabe como solucionar este
error ?? pone "cannot load metasetup .dll"
gracias de antemano, me tiene desesperado
hola soro, te pogo lo que comentaron por el mismo problema, espero que te sirve,(
Not without a little work of your own ... try
LoadLibrary & FreeLibrary found in Kernel32.dll
so you would do something like this in Init()
int hmod = LoadLibrary("c:MT4LibraryDirxxx.dll ");
if (hmod != 0 ) FreeLibrary(hmod);
else
Alert("xxx.DLL cannot be loaded");
Note we should free our loading of the DLL because MT4 will have already loaded it and windows maintains a counter of the number of times the DLL is loaded by an application instance. If you dont Free our call to loadlibrary then MT4 wont let the DLL Go when the EA ends. Although I must point out that MT4 cant be relied upon to free all Dll handles when an EA completes anyway but we should at least do what we should!
Of course this only ensures that the DLL file exists and that it is a valid DLL it does not ensure that the functions defined in your import statement actually exist. For that you should use the function GetProcAddress()
See the MSDN docs here )
espero que te sea útil compañero, un cordial saludo.
Foro de Forex Trading United