[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] ADK SendMessage



PureBytes Links

Trading Reference Links

I'm working on my first AFL plugin using Dev-C++. I'm a programmer by trade, but not a Windows programmer.

Anyway, after three days of brutal toil, I've managed to access the Time & Sales window. However to read the contents, I'm using the SendMessage LVM_GETITEMTEXT function which is really slow. I don't fully understand the windows messaging system yet, so don't get where the performance issue is. Something to do with them being queued?

40,000 SendMessage requests takes around 1.6 seconds which is way slow and that's only for 1 column of data. I can read and process 4 columns of the same data from a text file in around 50ms.

For realtime, where you'd only be reading maybe 500 records at a time, there's 4000 SendMessage calls and even that takes 100ms.
As I don't understand Windows very well, is there a faster way of doing this? Can I get a reference to the actual class itself?

When I copy (CTRL+C) from the Time & Sales window, it's so quick it's barely noticeable on the cpu graph. It'd be quicker for me to send a CTRL+C key message to the window and then process the data from the clipboard, which is a viable option if there's nothing else.

Hopefully there's some Windows programmers around here.

Thanks,
Julian.



------------------------------------

**** 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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/