This weekend I threw together a dll for use with aspect. I've always wanted to be able to use a listview control with aspect which was my main reason for it. There are several exported functions for creating and positioning the listview, as well as for adding columns, setting data, etc.
But I'm still weighing choices for passing data back to aspect. Since the listview was not created with aspect itself I won't be able to handle its events in aspect's message loop. DDE is an option, although I'd rather stay away from it. The only other thing that I could think of would be to make a call to a function in the dll, passing a string. Then setup a loop in aspect which checks that string and when it's not null it does whatever's necessary with that data. That seems really messy though, not to mention aspect's caps on string data (256 bytes iirc).
So does anyone have any ideas/suggestions for passing data (at arbitrary times) from a dll back to an aspect script? Obviously, when an aspect script makes a 'dllcall' the dll function can immediately pass back a return value. I'm needing to pass back data at arbitrary times, like when my subclassed listview receives notifications.
thanks,
will
But I'm still weighing choices for passing data back to aspect. Since the listview was not created with aspect itself I won't be able to handle its events in aspect's message loop. DDE is an option, although I'd rather stay away from it. The only other thing that I could think of would be to make a call to a function in the dll, passing a string. Then setup a loop in aspect which checks that string and when it's not null it does whatever's necessary with that data. That seems really messy though, not to mention aspect's caps on string data (256 bytes iirc).
So does anyone have any ideas/suggestions for passing data (at arbitrary times) from a dll back to an aspect script? Obviously, when an aspect script makes a 'dllcall' the dll function can immediately pass back a return value. I'm needing to pass back data at arbitrary times, like when my subclassed listview receives notifications.
thanks,
will