Ahhh. I didn't get that far because I didn't want to write a data plugin... I thought that section was solely for data plugins.
I got you now... I'll get reading. Good info as always Jules. Cheers --- In [email protected], "jooleanlogic" <joole...@...> wrote: > > Sid the info on the datetime format is in the ADK doco. > > It uses an AmiDate union which is 64 bits and contains a PackedDate struct. > The doco outlines how the date and time are bit packed. > > Also in version 5.28.1, Tomasz released the GetDateTimeArray function for the > ADK. > http://www.amibroker.com/devlog/2009/10/21/amibroker-5-29-2-beta-released/ > 5.28.1 section 7 - GetDateTimeArray. > > I haven't used it but from a past post, you need to add the function > prototype: > AmiDate* GetDateTimeArray(); > to the SiteInterface struct. > > I can't see how you'd be able to pass an AmiDate var directly between afl and > the dll because the AmiDate is 64 bits and the AmiVar only 32. I have a > feeling this might be why the GetDateTimeArray was added to the ADK in the > first place but Tomasz will know one way or the other. > The alternative if you can't pass directly is to just pass the date and time > seperately as two floats and then construct the AmiDate var yourself if you > actually need it in that format. > > Jules. > > > --- In [email protected], "Rob" <sidhartha70@> wrote: > > > > TJ, > > > > Any chance of picking your brain here...? > > Officially the DateTime structure is part of the .NET framework... so I'm a > > little confused about the following, > > > > 1. How you pass DateTime values from AFL to a DLL... strings or floats...? > > > > 2. What structure you use to handle them in the DLL... do you use > > ColeDateTime class...? CTime class...? > > > > Appreciated if you could point me in the right direction... > > > > TIA > > > > --- In [email protected], "Rob" <sidhartha70@> wrote: > > > > > > TJ, > > > > > > Quick question about passing DateTime() from AFL to a C++ DLL... actually > > > I just want to pass single values not arrays of DateTime(). > > > > > > How are the DateTime() values stored...? Can I pass them as a float or > > > only as a string...? > > > > > > TIA > > > > > >
