Errors, bugs, questions - page 248

 
AlexSTAL:

I'm sorry... How would one know about this feature if it's not stated anywhere???

Your post:

In this particular case you should use "we forgot to include this feature in the documentation" or "we just added this feature"...

EnumToString:

 
Renat:

EnumToString:

1) I gave a screenshot of the 370 build...

So for some reason the 10 days help file has not been updated to a new one...

Yes, checked... 370 - the help file is old and not updated... opened/closed it twice - nothing... deleted the first metaeditor_Russian.chm file I found - updated....

Before that, I pressed the "Reload later" button (or whatever it's called, after loading a new help), but the help was called at the same time - maybe this sequence of actions is the point?


2) Also... Sometimes (though not very often) that MetaEditor from the first time does not start, only the second:


3) Add to the " Type conversion of pointers of base classes to pointers of derived classes" section of Help: https: //www.mql5.com/ru/forum/2788/page2/#comment_38277:

((CPatternWW *)X).Value = 3;

in its own context, of course

 
AlexSTAL:

I gave a screenshot of 370 build...

So for some reason the help file hasn't been updated to a new one in 10 days...

Yes, I checked... 370 - the help file is old and not updating... opened/closed it twice - nothing... deleted the first metaeditor_Russian.chm file - updated....

Before, I clicked the "Reload later" button (or whatever it's called, after a new help download), but the help was called at the same time - maybe this sequence of actions is the matter?


1. Help is updated first in Onlan version and then help file is updated after some time (at least it was so before).

For this reason I have been looking for the current help only in the documentation section for a long time now.

2. As far as I remember, after loading the actual help file a mandatory reboot is required, so "Reload later" may well not allow the help to be updated.

 
Interesting:

2. As far as I remember after loading the actual help file a mandatory reboot is required, so "Reboot later" may well prevent the help file from being updated.

Well, I'm not a kid... I was the one who didn't reload the software during the day... then I did, but the file wasn't updated....

I even rebooted my computer - it still wouldn't update, although it was downloaded....

 
AlexSTAL:

Well, I'm not a kid after all... I was the one who didn't reload the software during the day... then i did, but the file didn't update....

I even rebooted the computer - it still wouldn't update, although it was downloaded....

That's new then, I've never seen a file downloaded and not updated at the same time.

As said above though, I switched to the Online version of the help and have no regrets about it.

 

All functions commented out get 'func' - ambiguous call to overloaded function with the same parameters

class CA
  {
public:
   void func(bool &n){n=n+1; Print("перегрузка bool ",n);};
   void func(char &n){n=n+1; Print("перегрузка char ",n);};
   void func(uchar &n){n=n+1; Print("перегрузка uchar ",n);};
   void func(short &n){n=n+1; Print("перегрузка short ",n);};
   void func(ushort &n){n=n+1; Print("перегрузка ushort ",n);};
   void func(int &n){n=n+1; Print("перегрузка int ",n);};
   void func(uint &n){n=n+1; Print("перегрузка uint ",n);};
   void func(color &n){n=n+1; Print("перегрузка color ",n);};
   void func(long &n){n=n+1; Print("перегрузка long ",n);};
   void func(ulong &n){n=n+1; Print("перегрузка ulong ",n);};
   void func(datetime &n){n=n+1; Print("перегрузка datetime ",n);};
   void func(float &n){n=n+1; Print("перегрузка float ",n);};
   void func(double &n){n=n+1; Print("перегрузка double ",n);};
   void func(string &n){n=n+1; Print("перегрузка string ",n);};
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnStart()
  {
   CA a;
   bool      t0=0;
   char      t1=1;
   uchar     t2=2;
   short     t3=3;
   ushort    t4=4;
   int       t5=5;
   uint      t6=6;
   color     t7=7;
   long      t8=8;
   ulong     t9=9;
   datetime t10=10;
   float    t11=11;
   double   t12=12;
   string   t13=13;
   a.func(t0);    Print("bool ",t0);
   //a.func(t1);    Print("char ",t1);
   //a.func(t2);    Print("uchar ",t2);
   //a.func(t3);    Print("short ",t3);
   //a.func(t4);    Print("ushort ",t4);
   //a.func(t5);    Print("int ",t5);
   //a.func(t6);    Print("uint ",t6);
   a.func(t7);    Print("color ",t7);
   //a.func(t8);    Print("long ",t8);
   //a.func(t9);    Print("ulong ",t9);
   a.func(t10);   Print("datetime ",t10);
   a.func(t11);   Print("float ",t11);
   a.func(t12);   Print("double ",t12);
   a.func(t13);   Print("string ",t13);
  }
 
Urain:

All functions commented out get 'func' - ambiguous call to overloaded function with the same parameters



thanks, let's fix it
 

Metaeditor 5.0 Build 370

Dear Experts! Bug or not?! The function is in the library and was previously located in the body of the program (it worked there) - I took it out because it was used by several programs.

The result of multiplication is not satisfying in any way and it equals 1.#INF. I take it that this is infinity. And the corresponding result of this function:
2010.12.26 13:52:51 A-BarsInterpreter2 (EURUSD,M15) 0.081 0, though it should be 810.

//converts points to their amount

//+----------------------------------------------------------------------------------------------------------+
int MathPointToInt(double A) export
{
int B=int(A*MathPow(10,_Digits));
Print(A," ",B);
return(B);

}

Although the inverse function works clearly...

//Converts quantity to points
//+----------------------------------------------------------------------------------------------------------+
double MathIntToPoint(int A) export
{
double B=NormalizeDouble(A*MathPow(10,-_Digits),_Digits);
Print("MathIntToPoint=",A," ",B);
return (B)

}


???

 
KffAlex:

Metaeditor 5.0 Build 370

Dear connoisseurs! Bug or not?! The function is in the library, used to be in the body of the program (worked there) - took it out due to the use of several programs.

The result of multiplication is not satisfying in any way, and it equals 1.#INF. I think it is infinity. And the corresponding result of the function:
2010.12.26 13:52:51 A-BarsInterpreter2 (EURUSD,M15) 0.081 0, though it should be 810.


Try to correctly insert the code. And first of all, print _Digits value to the log.
MQL5.community - Памятка пользователя
MQL5.community - Памятка пользователя
  • 2010.02.23
  • MetaQuotes Software Corp.
  • www.mql5.com
Вы недавно зарегистрировались и у вас возникли вопросы: Как вставить картинку в сообщение на форуме, как красиво оформить исходный код MQL5, где находятся ваши Личные сообщения? В этой статье мы подготовили для вас несколько практических советов, которые помогут быстрее освоиться на сайте MQL5.community и позволят в полной мере воспользоваться доступными функциональными возможностями.
 
KffAlex:

Metaeditor 5.0 Build 370

Dear connoisseurs! Bug or not?! The function is in the library, used to be in the body of the program (worked there) - took it out due to use by several programs.

The result of multiplication is not satisfying in any way and the value is 1.#INF. I think it is infinity. And so is the result of the function:
2010.12.26 13:52:51 A-BarsInterpreter2 (EURUSD,M15) 0.081 0, though it should be 810.

//Translates items into their number

//+----------------------------------------------------------------------------------------------------------+
int MathPointToInt(double A)
{
int B=int(A*MathPow(10,_Digits));
Print(A," ",B);
return(B);

}

Although the inverse function works fine...

//converts amount to points
//+----------------------------------------------------------------------------------------------------------+
double MathIntToPoint(int A)
{
double B=NormalizeDouble(A*MathPow(10,-_Digits),_Digits);
Print("MathIntToPoint=",A,",B);
return (B);

}


???

Please give more details, bitrate, build, OS...

Maybe you can cite the code?

Can't reproduce the behaviour so far.