Serial port

I’m having a first contact with the Connect SP platform, and I’m trying just to open the port “/com/0” and sending a message that I want to see in hyperterminal. When I try to open the port, it fails, with an error 16 (device busy). I’ve tried disabling the app dialog and the standard in/out so they don’t use this port, but that makes no difference. I’ve tried opening in different modes, and nothing. I’m using the template application, and I’ve put my code in the ApplicationStart routine. Can anybody point out what I’m obviously doing wrong?

Don’t bother… I found the problem. Somehow I didn’t disable the dialog correctly, so it was grabbing the port. I just disable it or close it getting the handler from the standard output so I can open the port.