Using datetime in C++ dll

 
Hi,

How do I pass and return datetime values to a C++ dll.

For example I want to pass the current bar time to a c++ function, in the c++ function it needs to do something with the value pass such as compare the value with values in a lookup file and then return a bool.

or

Pass in a an array of datetime values.

or

Return a datetime value based on some logic.

Any help here would be appreciated as the sample files don't include a sample for datetime.
 
Please read "MQL4: Datetime constants"

"Its internal representation is a long integer number of 4 bytes. The value represents the amount of seconds elapse from 00:00 Jan 1, 1970."

In c++ see time_t type
Reason: