Visual Basic SDK Parallel Port Device
Posted: Wed Sep 21, 2005 1:20 am
I'm developing a new Device to read and write from/to the Parallel Port. I'm using the old Visual Basic SDK because I'm afraid to say the C++ SDK was a bit too daunting. I've been able to successfully read and write from/to the parallel port using a single shot approach. To make this plugin more useful I would really like to monitor the status of the printer port data lines by continuously reading/polling them. The problem I've run into is that when using a "Do While Loop" and "DoEvents" I seem to chew up 100% of the CPU resources. Is there a "Best Known Method" for continuously polling the status of a device in HouseBot? Any Visual Basic code snippets or ideas would be greatly appreciated!
Thanks very much!
-Mike
Thanks very much!
-Mike