??? 01/16/07 07:53 Read: times |
#130848 - Wrong forum Responding to: ???'s previous message |
Neil Kurzman said:
You Have PC Questions Not 8051 Questions. This should be in chat. Or, better, try a specific PC forum. For everything about PC interfacing, always start at http://www.epanorama.net/links/pc_interface.html See: http://www.8052.com/forum/read.phtml?id=129189 www.MSDN.com has a great serial port sample in C. Remember to include the "Http..." - then the forum will automatically make the link clickable. The link is: http://msdn.microsoft.com To enumerate Serial Ports: Open each posible one. Then, check the error code. The parallel Port is harder. Alternatively, just put up a dialogue box for the user to enter the desired COM: or LPT: port number. Do not arbitrarily restrict the COM: or LPT: port number! See: http://www.8052.com/forum/read.phtml?id=128508 You could then use a registry key or INI file to record this as the default for future use... |
Topic | Author | Date |
doubt about ports | 01/01/70 00:00 | |
and one more doubt | 01/01/70 00:00 | |
Programming the PC | 01/01/70 00:00 | |
Off Topic | 01/01/70 00:00 | |
Wrong forum | 01/01/70 00:00 | |
Win ports | 01/01/70 00:00 | |
Bad practice... | 01/01/70 00:00 | |
Bad practice | 01/01/70 00:00 | |
some thoughts | 01/01/70 00:00 | |
Do not hard-code adresses! | 01/01/70 00:00 | |
You need to tell us more ... | 01/01/70 00:00 | |
MS-DOS | 01/01/70 00:00 | |
why? | 01/01/70 00:00 | |
Misunderstanding ? | 01/01/70 00:00 | |
Not quite so | 01/01/70 00:00 | |
a parallel in '51 | 01/01/70 00:00 | |
Sharing | 01/01/70 00:00 | |
OK, the sad facts | 01/01/70 00:00 | |
MS-DOS will allow and do anything the PC can do | 01/01/70 00:00 | |
...and the reason is ... | 01/01/70 00:00 | |
If Windows were truly multi-user/multitasking ... | 01/01/70 00:00 | |
it's broken | 01/01/70 00:00 | |
So much for the "Good Old Days" | 01/01/70 00:00 | |
Yes, and the ones that worked, worked really well | 01/01/70 00:00 | |
The Right one![]() | 01/01/70 00:00 |