Home > Software engineering >  There are no related members in a serial port control variables
There are no related members in a serial port control variables

Time:09-16

Using VS2019 successful add a serial port control, but in creating variables and found no related members such as get_PortOpen (), put_InBufferSize ()
these member functionsBelow is the time to create a variable

Below is error message

What a great god can solve please, be grateful!

CodePudding user response:

Variable types CMSComm instead

CodePudding user response:

reference 1st floor schlafenhamster response:
variable type change CMSComm
tried before this method, the result is the same, should not a variable type problem, but still thank you for your answer,

CodePudding user response:

Class wizard generated class name?

CodePudding user response:

Class wizard will add two files at the same time,
"Mscomm. H"
"Mscomm. CPP"

CodePudding user response:

Using CSerialPort, bad mscom with
https://download.csdn.net/download/tajon1226/11102637

CodePudding user response:

The
reference 4 floor schlafenhamster reply:
class wizard will add two files at the same time,
"Mscomm. H"
"Mscomm. CPP"
I useless class wizard to add, add controls pulled the variables directly, and then produced the two files, the class name is COCX


CodePudding user response:

refer to fifth floor walk every step response:
using CSerialPort, bad mscom with
https://download.csdn.net/download/tajon1226/11102637
well, I look at the ready to use the controls, and the win32 API, CSerialPort three kinds of methods to realize again to learn,

CodePudding user response:

refer to 6th floor assassin * prodigal reply:
Quote: refer to 4th floor schlafenhamster response:

Class wizard will add two files at the same time,
"Mscomm. H"
"Mscomm. CPP"
I useless class wizard to add, add controls pulled the variables directly, and then produced the two files, the class name is COCX


I found that I add the variable is not in COCX class, is the problem?

COCX class does not I add variable

CodePudding user response:

"Such as get_PortOpen (), put_InBufferSize () the member function"
Check COCX. H
  • Related