请问:为何GetCommState()语句不能通过,具体如下
TCommConfig aa;
GetCommState(hcomm,aa.dcb);
aa.dcb.BaudRate=CBR_9600;
aa.dcb.ByteSize=8;
aa.dcb.Parity=NOPARITY;
aa.dcb.StopBits=ONESTOPBIT;
可是就是不能编译,提示
[C++ Error] Unit1.cpp(35): E2034 Cannot convert '_DCB' to '_DCB *'
我是WINDOWS2000操作系统