自动检测可用的串口号,可以很方便的移到mfc。Oneofthepoststhatkeepsreappearingintheprogrammingnewsgroupsishowtoenumeratealltheserialportsinstalled.Thecodeusesanumberofdifferentmethodstoenumeratetheports.