??? 06/22/04 13:59 Read: times |
#72950 - RE: How? Responding to: ???'s previous message |
What I have done in VB is as follows:
I make the VB form have a chooser box where the user can select the COMM port that they want to use. Before displaying the box (at form load time) I have VB run a scan and try to open say the first 100 communications ports. If they fail to open I skip them. If it did open I then close it right away and add its COMM id to the chooser box. If you run on a slow computer then reduce the number that you try to scan to 50 or 30 or 20. I have found that a scan of 100 on a 900 MHx computer takes only a short time. Michael Karas PS...I have also done this in VC++6. Someplace I have a small application that shows the results for the first 100 comm ports. It seems misplaced at the moment but if I can find it I can link it here. MJK |
Topic | Author | Date |
VB COM2 - Off topic | 01/01/70 00:00 | |
RE: VB COM2 - Off topic | 01/01/70 00:00 | |
RE: VB COM2 - Off topic | 01/01/70 00:00 | |
Bad style - unwarranted restriction | 01/01/70 00:00 | |
RE: Bad style - unwarranted restriction | 01/01/70 00:00 | |
RE: Wot, not serial port?! | 01/01/70 00:00 | |
RE: Bad style - unwarranted restriction | 01/01/70 00:00 | |
COM13!! | 01/01/70 00:00 | |
RE: COM13!! | 01/01/70 00:00 | |
RE: COM13!! | 01/01/70 00:00 | |
RE: COM13!! | 01/01/70 00:00 | |
RE: COM13!! | 01/01/70 00:00 | |
How? | 01/01/70 00:00 | |
RE: How? | 01/01/70 00:00 | |
RE: How? | 01/01/70 00:00 | |
RE: How? | 01/01/70 00:00 | |
RE: Bad style - unwarranted restriction | 01/01/70 00:00 | |
RE: VB COM2 - Off topic | 01/01/70 00:00 | |
The Result | 01/01/70 00:00 | |
RE: The Result | 01/01/70 00:00 | |
RE: The Result | 01/01/70 00:00 | |
RE: VB COM2 - Off topic | 01/01/70 00:00 | |
The source code HERE. | 01/01/70 00:00 | |
Or the Whole achieve in Zip file![]() | 01/01/70 00:00 |