Mail Archives: djgpp/1999/12/09/14:10:28

From: EricJ <ericj AT netvigator DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: MSComm
Date: Fri, 10 Dec 1999 02:41:26 +0800
Organization: IMS Netvigator
Lines: 19
Message-ID: <>
Mime-Version: 1.0
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have to develope a program to access RS232 using
Visual C++ 6.0, MFC MSComm. But I face the questions :
I have assign a CMSComm object m_MSComm.
I can setup the port using the following statements :

But I can't use the following statement :
The compiler compain that "cannot convert from 'char [4]' to 'const
struct tagVARIANT'". How to correct it?

And also I don't know how to receive data from RS232.
Any body can me or send me simple example?

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019