Download MetaTrader 5

parameter conversion not allowed

To add comments, please log in or register
Do you have questions on how to turn your idea into reality? Ask them on the Forum!
sd2000sd
212
sd2000sd 2014.09.11 16:01 

How can I solve this error I get when I try to compilte my code containing:

the error is for this line:  (error says: parameter conversion not allowed)

int handle = FindWindowA(i, log);
int FindIfDirOpened() {
    string log = "logs";
    string i;
    
    int handle = FindWindowA(i, log);

    return(handle);
}
Carl Schreiber
6580
Carl Schreiber 2014.09.11 16:20  
You are importing the windows-function in a different way (its parameters) you use it.
whroeder1
14470
whroeder1 2014.09.11 16:43  
And FindWindowA probably takes an ASCII string, not a MT4 Unicode string.
erkan_iii
8
erkan_iii 2016.09.03 08:39  

I found this indicator in one of the trading forums, but it is still gives a Parameter conversion not allowed.

Can some one fix it please. Your help is appreciated 

Files:
Fernando Carreiro
2352
Fernando Carreiro 2016.09.03 10:57  
erkan_iii:

I found this indicator in one of the trading forums, but it is still gives a Parameter conversion not allowed.

Can some one fix it please. Your help is appreciated

That is very old code. You should learn to use the Search function: https://www.mql5.com/en/forum/150058

Also read: https://www.mql5.com/en/articles/1468

To add comments, please log in or register