I have a problem with a mscoom active-x:
the problem is that I want to open the serial port as soon as I open the dialog box, but if I put the
"myconnection.SetPortOpen(TRUE)" in the init procedure of the dialog I get an unhandled error if the port has already been opened (by another application).
PS: if I put the command in a button handler function it just shows a modal dialog "port already open".
How can I solve this ?(I think I have to find a way to make it do the command after the dialog is shown)
the problem is that I want to open the serial port as soon as I open the dialog box, but if I put the
"myconnection.SetPortOpen(TRUE)" in the init procedure of the dialog I get an unhandled error if the port has already been opened (by another application).
PS: if I put the command in a button handler function it just shows a modal dialog "port already open".
How can I solve this ?(I think I have to find a way to make it do the command after the dialog is shown)