O.P. Passing information DLL -> script
Just a quick thought.
At the moment you are able to call com functions from a script.
How would you go about going the other direction, eg. the dll is running in the background and when it gets information will need to pass it back to a script. Is this able to be done?
Only other way i can think of doing this is having a timer or a loop, but im not sure how resource hungry that'd be.
Eg.
while() {
if (dataAvailable)
call getdata()
}
or
timer_event()
{
if (dataAvailable)
call getdata()
}
Has anyone tried this? As i think what i'll need to do is implement some sort of buffering system into my compiled code and buffer/stack the data until the script calls it to read the info out.
|