OleVariant ovRecvBuf;
If (MSComm1 - & gt; CommEvent==2)
{
If (MSComm1 - & gt; InBufferCount & gt; 0)//MSComm1 - & gt; InBufferCount=11 that have data
{
OvRecvBuf=MSComm1 - & gt; The Input;//win10 execute exe file, here's an error, performing works in Windows 7,
For (int k=0; K
RecvBuff [k]=ovRecvBuf. GetElement (k);
}
}
}
Program is in Windows 7 64 - bit development, could obtain the normal data, using software on win10 error; A great god, please give directions
CodePudding user response:
Right click - try to run as an administrator,CodePudding user response:
Is EOleException and EVariantInvalidArgError pop-up error classes, with an administrator login EVariantInvalidArgError error does not appear, but there is no access to data,CodePudding user response:
Perform to ovRecvBuf=MSComm1 - & gt; Input error, jump out of the program, because different type?CodePudding user response:
Ready to install a virtual machine debugging, have a great god met this situation