Libraries: TypeToBytes

 

TypeToBytes:

Byte-wise operation with structures and standard data types.

Author: fxsaber

 
Automated-Trading:

TypeToBytes:

Author: fxsaber

Hi fxsaber. Firstly, thank you for the work on TypeToBytes. I downloaded both the TypeToBytes file and mq5 example, and on running it, I get a handful of errors all related to cast problems.  Here are a few examples of the errors;

  • cannot cast 'MqlTick' to 'STRUCT_READ<MqlTick>' TypeToBytes.mqh 115 20
  • cannot cast 'STRUCT_READ<MqlTick>' to 'STRUCT_TYPE<MqlTick>' TypeToBytes.mqh 84 4
  • cannot cast 'STRUCT_READ<double>' to 'STRUCT_TYPE<double>' TypeToBytes.mqh 62 14
  • cannot cast 'STRUCT_READ<uchar>' to 'STRUCT_TYPE<uchar>' TypeToBytes.mqh 62 14
  • cannot cast 'STRUCT_READ<MqlTick>' to 'STRUCT_TYPE<MqlTick>' TypeToBytes.mqh 85 4

I am trying to use this file as part of a neural network I am developing.  Your help is greatly appreciated.


 
Shephard Mukachi:
The latest version is always here.
 
fxsaber:
The latest version is always here.

That did it, thanks a million for your hard work and swift response too.

Reason: