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
Post a Comment