Can I write comm port without MsgInfo()?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Can I write comm port without MsgInfo()?

Post 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
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Post by Mdandrea »

A quick fix is to use a hidden window, it doesn't have to be a dialog box.
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Dear Mdandrea,

Thanks for your recommend. It works ok now.

Thanks,
Dutch
Mdandrea
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Post by Mdandrea »

Glad to hear it worked for you Dutch.
Post Reply