Password Protection

To add comments, please log in or register
Engin Bindas
312
Engin Bindas  

ERROR


How to fix the error here ?


I've created a password for the product, but the program gives a password error, how can I solve it.Please help me. Thank you.

Carl Schreiber
Moderator
10545
Carl Schreiber  

Do you mean declaration of Password hides ... ?

You can:

  1. not define Password globally or
  2. not define Password again in the function or
  3. use something else than Password but e.g. pwd.

Flavio Jarabeck
173870
Flavio Jarabeck  
Engin Bindas:


How to fix the error here ?


I've created a password for the product, but the program gives a password error, how can I solve it.Please help me. Thank you.

as the Compiler said... See the previous declaration of the variable "Password"...

And please do not start declaring variables anywhere on your code, it is a very bad practice...

Engin Bindas
312
Engin Bindas  
Carl Schreiber:

Do you mean declaration of Password hides ... ?

You can:

  1. not define Password globally or
  2. not define Password again in the function or
  3. use something else than Password but e.g. pwd.

Thank you Carl Screiber and Flavio Jarabeck ...I fixed the error but it does not recognize the password and the robot does not work, how to fix this problem ?

Flavio Jarabeck
173870
Flavio Jarabeck  
Engin Bindas:

Thank you Carl Screiber and Flavio Jarabeck ...I fixed the error but it does not recognize the password and the robot does not work, how to fix this problem ?

You don't have any minimum clue of what you are doing right?

Is this your code??

Shame on you!

Engin Bindas
312
Engin Bindas  
Flavio Jarabeck:

You don't have any minimum clue of what you are doing right?

Is this your code??

Shame on you!

I've written the code, but it gives the error, I don't understand

Mohamad Zulhairi Baba
22019
Mohamad Zulhairi Baba  
Engin Bindas:

I've written the code, but it gives the error, I don't understand

If you written the code, you should have know, why you implement the password function.

Engin Bindas
312
Engin Bindas  
Mohamad Zulhairi Baba:

If you written the code, you should have know, why you implement the password function.

I wrote the code somewhere else, I'm not an encoder.

This is  https://www.mql5.com/en/code/15534


I tried the code here but it doesn't work.


Incorrect password error.

Adding password protection to your Indicator / Expert Advisor
Adding password protection to your Indicator / Expert Advisor
  • www.mql5.com
Several methods of protecting your code have been proposed over the past, but were either too simple (less secure), required re-compilation of your code for each new customer (ok if you only plan on having a dozen or so customers) or far too complicated involving a remote host to validate the client terminal. Here I propose a simple password...
To add comments, please log in or register