how can I find an available COM port in FreeBASIC? -


i'm working on graphical com port monitor in freebasic, feel kinda wrong re-compiling every time change computer or adapter. there way scan available com port in freebasic?

you can list of ports available using win32 api function enumports or can check registry branch hkey_local_machine\hardware\devicemap\serialcomm.

the following 2 code snippets illustrate 2 ways mentioned above:

unfortunately, code snippet pages in german given source codes, of course, work on non german systems, too. ;-)


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -