FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Can I write comm port without MsgInfo()?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Can I write comm port without MsgInfo()?
Posted: 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

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 21
Joined: Wed Nov 23, 2005 12:24 AM
Can I write comm port without MsgInfo()?
Posted: 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.

Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
Can I write comm port without MsgInfo()?
Posted: Fri Mar 24, 2006 05:15 PM

Dear Mdandrea,

Thanks for your recommend. It works ok now.

Thanks,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 21
Joined: Wed Nov 23, 2005 12:24 AM
Can I write comm port without MsgInfo()?
Posted: Sat Mar 25, 2006 01:29 PM

Glad to hear it worked for you Dutch.

Continue the discussion