parameter conversion not allowed

Back to topics list To post a new topic, please log in or register
avatar
22
sam2014 2014.09.11 18: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);
}
avatar
2017
gooly 2014.09.11 18:20 #
 
You are importing the windows-function in a different way (its parameters) you use it.
avatar
13008
WHRoeder 2014.09.11 18:43 #
 
And FindWindowA probably takes an ASCII string, not a MT4 Unicode string.
avatar
2
erkan_iii 2016.09.03 10: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 

 

 

 

Attached files:
  zup_v83fixed.mq4  (361.79 KB)
avatar
1228
FMIC 2016.09.03 12: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://forum.mql4.com/61417#917673

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

Back to topics list  

To add comments, please log in or register