Download MetaTrader 5

parameter conversion not allowed

To add comments, please log in or register
sd2000sd
212
sd2000sd  

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
6972
Carl Schreiber  
You are importing the windows-function in a different way (its parameters) you use it.
whroeder1
15311
whroeder1  
And FindWindowA probably takes an ASCII string, not a MT4 Unicode string.
erkan_iii
8
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 

Files:
Fernando Carreiro
2202
Fernando Carreiro  
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