![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Serial port polling/multi tasking in an ActiveX componentby Nitrox (Chaplain) |
on Nov 18, 2002 at 03:53 UTC ( #213648=perlquestion: print w/replies, xml ) | Need Help?? |
Nitrox has asked for the wisdom of the Perl Monks concerning the following question:
I've been playing with ActiveState's Perl Development kit which includes a utility (perlctrl) for creating ActiveX components.
One of the projects I'd like to port is a script that polls the serial port for data. However, the 3rd party app that would be using this component would need to call other functions while I'm polling the serial port after 'creation'. (this wasn't a requirement as a script since I used Win32::OLE instead of handling 'callbacks'). Has anyone done something similar, and what are my best options for this? Can Win32::SerialPort be used in conjunction with events to avoid the while(1) loop? -Nitrox
Back to
Seekers of Perl Wisdom
|
|