Re: Unknown origin of error message

Richard Russell

--- In bb4w@..., <bb4w@...> wrote:

> make sure when you open the comport that it is opened!


I would second that.  It is almost certain that the 'Invalid channel' error arises because you attempted to open a file or port (with OPENIN or OPENUP) but didn't check that the returned handle was non-zero.


Does your program make provision for customizing the COM port number, for example by storing it in a configuration file or the registry?  If not, how does the end user tell the program what number his particular serial port is (even if there's only one it's not always COM1)?



Join to automatically receive all group messages.