Pls Help! Where is the Error ?

To add comments, please log in or register
Weixing Meng
238
Weixing Meng  
//Here is the error code

int BytesWriten = FileWriteStruct(filehandle,H4Info);

Error Info: possible loss of data due to type conversion

I really can't get it, the 2nd parameter of FileWriteStruct() H4Info is a struct below:

struct H4_SignalInfo{
   int BuyOrSell;
   datetime H8_AfterSignal;
};

Where is the conversion please.....?

Thanks a lot!

//add the file open code
int filehandle=FileOpen("H4_Signal_Info.txt",FILE_WRITE|FILE_TXT);


Weixing Meng
238
Weixing Meng  
Weixing Meng:

Error Info: possible loss of data due to type conversion

I really can't get it, the 2nd parameter of FileWriteStruct() H4Info is a struct below:

Where is the conversion please.....?

Thanks a lot!


Solved...thanks for coming , the return type should be uint, not int , thank you again.

To add comments, please log in or register