PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "jooleanlogic" <jooleanl@xxx> 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 amibroker@xxxxxxxxxxxxxxx, "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 amibroker@xxxxxxxxxxxxxxx, "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
> > >
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
amibroker-digest@xxxxxxxxxxxxxxx
amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|