Can I write comm port without MsgInfo()?

Can I write comm port without MsgInfo()?

Postby dutch » Fri Mar 24, 2006 10:23 am

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
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby Mdandrea » Fri Mar 24, 2006 12:24 pm

A quick fix is to use a hidden window, it doesn't have to be a dialog box.
Mdandrea
 
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am

Postby dutch » Fri Mar 24, 2006 5:15 pm

Dear Mdandrea,

Thanks for your recommend. It works ok now.

Thanks,
Dutch
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby Mdandrea » Sat Mar 25, 2006 1:29 pm

Glad to hear it worked for you Dutch.
Mdandrea
 
Posts: 21
Joined: Wed Nov 23, 2005 12:24 am


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 12 guests