hello, i've written a program that sends commands to the computer according to the data that it recieving from the com. port. i wrote the program for port 1, the problem is, what if the user is using that port for something else? can someone give me an example to a setup code that will allow user to choose the port from wich he wants the data to be recieved from for the application, and according to the user choise, the program code will change the com. port number in the code?
(less complicated solution for the problem are welcome too)