Download MetaTrader 5
To add comments, please log in or register
How to choose the most appropriate signal and subscribe to it in no time
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
5947
Carl Schreiber 2014.09.11 16:20  
You are importing the windows-function in a different way (its parameters) you use it.
whroeder1
13617
whroeder1 2014.09.11 16:43  
And FindWindowA probably takes an ASCII string, not a MT4 Unicode string.
erkan_iii
7
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
1468
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