Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSComm

Status
Not open for further replies.

scienzia

Programmer
Joined
Feb 21, 2002
Messages
160
Location
IT
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)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top