Errors, bugs, questions - page 2034 1...202720282029203020312032203320342035203620372038203920402041...3193 New comment Anton Ohmat 2017.10.12 08:58 #20331 Is the execution of stops during a gap already fixed? Aleksey Vyazmikin 2017.10.12 12:20 #20332 Vitaly Muzichenko: Dig out the home button with a screwdriver :)No, that's not the problem. As it happens both when MT5 is in the background and when even the chart is different. Kirill Belousov 2017.10.12 13:56 #20333 I suppose the problem is because of this strange field: //---- profit calculation parameters int unknown2;It wasn't there in the original, where did it come from?It is 4 bytes for address alignment in the structure.previous gtc_pendings and subsequent contract_size field are read correctly Any questions from newcomers Please advise - How Questions on OOP in Evgenii Voroshilov 2017.10.12 15:28 #20334 Please send me a link to the topic: . sl: 0.00000 tp: 0.00000 failed [Off quotes] A100 2017.10.12 16:20 #20335 Compilation error#define MACRO1( X, Y ) X/**/##Y #define MACRO2( X, Y ) X##/**/ Y void f5() {} void OnStart() { MACRO1( f, 5 )(); //нормально MACRO2( f, 5 )(); //error: 'f/' - undeclared identifier } fxsaber 2017.10.12 16:29 #20336 A100: Error during compilationWould have banned MACRO1 as well. A100 2017.10.12 16:39 #20337 fxsaber: Would have banned MACRO1 as well.Based on what? Just because you felt like it?There is a general rule: comments can be in any part of the program. If you do not use comments, it does not mean that others do not Can I re install The impact of the Registration for the MetaQuotes-Demo fxsaber 2017.10.12 16:52 #20338 A100: Based on what? Just because you feel like it?There's a general rule: comments can be in any part of the program. Just because you don't use comments doesn't mean others don'tBecause it's as twisted as this.#define MACRO(A,B) A## \ B void OnStart() { int j2; int i = MACRO(j,2); }By the way, it looks like a bug.#define MACRO(A,B) A##B void OnStart() { int i = MACRO(1,2); // '12' - undeclared identifier } A100 2017.10.12 20:35 #20339 fxsaber: Because it's as twisted as this.By the way, it looks like a bug.No real argument - just say so. In your mind it can't be a bug because you can't write it that way - it's like replacing /**/ comments in the example above with spaces#define MACRO2( X, Y ) X## Y fxsaber 2017.10.12 20:39 #20340 A100: If you don't have a solid argument, just say so. It can't be a bug in your mindvoid OnStart() { int j2; int i = j/**/2; }Why shouldn't a macro cause an error in this place? Just don't cite C++ as an argument, where someone thought for others. 1...202720282029203020312032203320342035203620372038203920402041...3193 New comment
Dig out the home button with a screwdriver :)
No, that's not the problem. As it happens both when MT5 is in the background and when even the chart is different.
I suppose the problem is because of this strange field:
It wasn't there in the original, where did it come from?
It is 4 bytes for address alignment in the structure.
previous gtc_pendings and subsequent contract_size field are read correctly
Please send me a link to the topic: . sl: 0.00000 tp: 0.00000 failed [Off quotes]
Compilation error
Error during compilation
Would have banned MACRO1 as well.
Would have banned MACRO1 as well.
Based on what? Just because you felt like it?
There is a general rule: comments can be in any part of the program. If you do not use comments, it does not mean that others do not
Based on what? Just because you feel like it?
There's a general rule: comments can be in any part of the program. Just because you don't use comments doesn't mean others don't
Because it's as twisted as this.
By the way, it looks like a bug.
Because it's as twisted as this.
By the way, it looks like a bug.
No real argument - just say so. In your mind it can't be a bug because you can't write it that way - it's like replacing /**/ comments in the example above with spaces
If you don't have a solid argument, just say so. It can't be a bug in your mind
Why shouldn't a macro cause an error in this place? Just don't cite C++ as an argument, where someone thought for others.