LPDPIDate lpDateis a memory pointer to a date. You will need to find out what the C language structure and size for the date is before you can know what the returned value is.
<font color="#0000FF">local</font> cStr, nErr <font color="#0000FF">declare integer</font> DPIGetSysDate <font color="#0000FF">in</font> YourLibraryName.Dll <font color="#0000FF">integer</font> hSoc, <font color="#0000FF">integer</font> wType, <font color="#0000FF">string</font> @ lpDate cStr = <font color="#0000FF">replicate</font>(<font color="#0000FF">chr</font>(0), nLengthOfDateStruct) <font color="#008000">&& Fill in with your own date struct</font> nErr = DPIGetSysDate(m.YourhSoc, m.YourwType, @cStr) && <font color="#0000FF">Call the routine</font> <font color="#0000FF">** Interpret your results...</font>The next step is to intrepret the results which can be intersting. You will need to know the exact spec for DPIDate which should be in a C++ header file (has a .h extension). Look for the line with struct DPIDate { ... and get everything until the end curly brace.