I desire to have an object that I can use within VB that will provide asynchronous serial features (i.e. it will generate some sort of event when data arrives, and so forth).
Now, the Microsoft’s MSCOMM control does provide me with this data arrival event. However, I can't seem to use this control without seating the OCX (putting it on a form). Is there any way I can access this object without seating it? This may be one option.
The other option is to access the port through API - this is what MSCOMM does anyways. Thus, calls to CreateFile, GetCommState, etc, etc. It seems that to provide Async this way I have to use CreateFile with it's Async functionality. All is good ... It appears I will end up needing multiple threads such that one thread can be 'waiting' for data to arrive and the main thread can still be responsive to the client process. Is this all true or have I gone mad? HeHe.
These appear to be my options?
