>Ahhhh - just when I thought this was going to be easy! Anyone got any
foolproof methods for finding the serial ports?<

Ok, what I do is sidestep the problem. Use a reasonable default, but allow
any number from, say, 1 to 10 to be entered (in a normal edit box). When
you try to open the port, generate an error message if it fails as you
normally would. This way, if the machine configuration has temporarily
changed, the software still makes sense to use. It's easy to implement, the
value is hardly ever changed anyway, and _every_ implementation I've come
across that uses radio buttons will not let me access all of my extended
ports. Even the ubiquitous HyperTerm doesn't get it right.

An approach I've also seen some try is to open each port and look at the
result to establish if the port exists. This is not a 100% passive action
though (but this is how Turbopower do it in AsynchPro)

For the result, I really don't see the need for a complex solution. And the
edit box solution really isn't that bad to use.

Terry
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to