错误、漏洞、问题 - 页 2669

 

再来--二十五...

При соединении с c.mql5.com произошла ошибка. PR_END_OF_FILE_ERROR

它是否会被修复?毕竟,它每天都会脱落好几次......

 

未知资源类型- 这个错误的原因是什么?这是第二个指标,我不能像这样使用。

unknown resource type
unknown resource type
  • 2020.03.02
  • www.mql5.com
Всем привет. Использую индикаторы как #resource в ЕА...
 

亲爱的开发者们!

他们最近修复了它,又一次(FORTS, Open, Real, Bild 2340)。


 

有没有办法在打开的CAppDialog内按下鼠标按钮时阻止图表的滚动?

现在,例如,如果你点击对话框内的CB按钮,并在移动光标时保持按下鼠标按钮(通常这甚至是不由自主地发生的,几个像素),图表开始滚动。

该库对此只有一个提示--CAppDialog头,它在鼠标点击 时创建一个darg对象并进入拖动模式,在这个模式下,图表本身保持在原位。如果你使用这种技术,你就失去了点击CB按钮(或任何其他控制器)的能力。

有没有人已经解决了这个问题?

 
Stanislav Korotky:

有没有办法在打开的CAppDialog内按下鼠标按钮时阻止图表的滚动?

现在,举例来说,如果你点击对话框内的CB按钮,并保持按下鼠标按钮并移动光标(通常这甚至是不由自主地发生的,几个像素),图表开始滚动。

该库对此只有一个提示--CAppDialog头,它在鼠标点击 时创建一个darg对象并进入拖动模式,在这个模式下,图表本身保持在原位。如果你使用这种技术,你就失去了点击CB按钮(或任何其他控制器)的能力。

也许有人已经解决了这个问题?

我用鼠标滚轮为某人写了一个例子,它完全是用滚轮挡住了滚动。 我想你需要编辑一些图表的属性

以下是所有的例子https://www.mql5.com/ru/docs/constants/chartconstants/charts_samples

CHART_MOUSE_SCROLL和CHART_FOREGROUND,你可以试着改变它。

 
如何删除显示我名字的卖家状态? P.s. 我不是一个卖家
 
MT5(build 2361)中的错误
对不适当的输出的主要抱怨是 "被废弃的行为,隐藏的方法调用将在未来的MQL编译器版本中被禁用"。
目前的实施方式是在麻雀身上开炮。
不管是否相关,警告是在基类中任何一次调用重载模板函数时 "弹出 "的,在某些情况下,这大大阻碍了开发。

class FakeArgument_A1{
} fake_argument_a1;

class FakeArgument_B1 : public FakeArgument_A1{
} fake_argument_b1;


struct Iterator{
   char data;
};

class Allocator_traits{
public:
   template<typename InputIterator>
   void construct_range(const InputIterator &it, int n, const FakeArgument_A1* = NULL){
      printf("1");
   }
   
   template<typename InputIterator, typename _Tp>
   void construct_range(const InputIterator &it, const int n, const _Tp &value,  const FakeArgument_A1* = NULL){
      printf("2");
   }
   
   template<typename OutputIterator, typename InputIterator>
   void construct_range(const OutputIterator &it, const InputIterator &_first, const InputIterator &_last,  const FakeArgument_A1* = NULL){
      printf("3");
   }
};
   
class Allocator : public Allocator_traits{
public:
#ifdef __cplusplus
   using Allocator_traits::construct_range;
#endif 

   template<typename InputIterator>
   void construct_range(const InputIterator &it, int n,  const FakeArgument_A1* = NULL){
      printf("4");
   }
};


void OnStart(){
   Iterator it = {};
   Allocator alloc;
   
   alloc.construct_range(it, it, it);                          // Compile Error: False Positive Warnings - deprecated behavior, hidden method calling will be disabled in a future MQL compiler version
   alloc.construct_range<Iterator, Iterator>(it, it, it);      // Compile Error: 'construct_range' - wrong template parameters count    
   alloc.construct_range(it, it, it, (FakeArgument_B1*)NULL);  // Bypass False Positive Warnings - "deprecated behavior" 
   
   
   const int n = 5;
   const int value = 0;
   alloc.construct_range(it, n, value);                         // Compile Error: Ok, should be: 'construct_range' - ambiguous call to overloaded function    
   alloc.construct_range(it, n, value, (FakeArgument_B1*)NULL); // OK. Compile Error: - 'construct_range' - ambiguous call to overloaded function       
}

int main(){
   OnStart();
   return 0;
}

C++在线:https://onlinegdb.com/rkbNuGVSL
 
有什么保护措施可以防止用户和他将信号复制 到他的其他账户?
 
在MT5参考、MQL5参考/与DirectX合作和https://www.mql5.com/ru/docs/directx,有一个错字。

DXContextSetSize

改变在DXContextCreate()中创建的图形上下文的帧大小。

DXContextSetSize

获取在DXContextCreate()中创建的图形上下文的框架尺寸。

正确的值和引用:DXContextGetSize

 
谁在MT5中出现了获利回吐,订单的寿命有多长?