В случае com_set.Port:=1 получаю:
com_handle = 4294967295
com_set.Port = COM1
res = *** INVALID: 16#FF ***
close = *** INVALID: 16#FF ***
В случае com_set.Port:=0 получаю:
com_handle = 0
com_set.Port = *** INVALID = 0 ***
res = FALSE
close = FALSE
В случае com_set.Port:=4 получаю:
com_handle = 0
com_set.Port = COM4
res = FALSE
close = FALSE
Читаю описалово на SysComSetSettings:
As soon as the parameters could be set successfully, TRUE will be returned, otherwise FALSE.
Читаю хелп на SysComClose:
The return value will be TRUE after a successful operation, otherwise FALSE.
Я получаю FALSE, значит parameters could NOT be set/closed successfully.
..к сожалению..
Ну, и:
Почему, 0? Может быть, я хочу открыть 232ой, или Debug, который сейчас свободен?