Page 1 of 1

Can I write comm port without MsgInfo()?

Posted: Fri Mar 24, 2006 10:23 am
by dutch
Dear All,

I have to do the communication with serial port (RS232) but the examle TESTCOMM.PRG said
// Windows requires to have a Window at least to perform comunications !!
// Let's use the MessageBox() Window as default

It means MessageBox() will be showed everytime when I use WriteComm() function.

How can I donot show any message (Run as backgroup or Windows service)?

Thanks in advance,
Dutch

Posted: Fri Mar 24, 2006 12:24 pm
by Mdandrea
A quick fix is to use a hidden window, it doesn't have to be a dialog box.

Posted: Fri Mar 24, 2006 5:15 pm
by dutch
Dear Mdandrea,

Thanks for your recommend. It works ok now.

Thanks,
Dutch

Posted: Sat Mar 25, 2006 1:29 pm
by Mdandrea
Glad to hear it worked for you Dutch.