Home > Software engineering >  Application error winocc. CPP
Application error winocc. CPP

Time:09-30

VC program in one of my computer there is no problem, 1 pack after installation
In no VC computer 2 there was a problem:
D: \ agent \ _work \ 3 \ \ SRC \ s vctools \ vc7libs \ ship \ atlmfc \ SRC \ winocc CPP
The Line: 377

Computer 1 open your VS directory, such as
E: \ \ Program Files \ Microsoft Visual Studio (x86), 2017, the Community, VC \ Tools \ MSVC \ 14.16.27023 \ atlmfc \ SRC \ MFC directory, see winocc. CPP file assertion error location,

Void AFX_CDECL CWnd: : InvokeHelper (DISPID dwDispID, WORD wFlags, VARTYPE vtRet,
Void * pvRet, const BYTE * pbParamInfo,... )
{
ASSERT (m_pCtrlSite!=NULL);//not the an OLE control (not yet, at further) -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
wrong position
If (m_pCtrlSite==NULL)
return;

Va_list argList;
Va_start (argList, pbParamInfo);
M_pCtrlSite - & gt; InvokeHelperV (dwDispID wFlags, vtRet pvRet, pbParamInfo,
ArgList);
Va_end (argList);
}

Step through code, the following code will go to the 377 lines
If (m_SerialComm get_PortOpen ())
{
M_SerialComm. Put_PortOpen (false);//close a serial port
}

Void put_PortOpen (BOOL newValue)
{
The static BYTE parms []=VTS_BOOL;
InvokeHelper (0 x14, DISPATCH_PROPERTYPUT, VT_EMPTY, nullptr, parms, newValue);
}
BOOL get_PortOpen ()
{
BOOL result;
InvokeHelper (0 x14, DISPATCH_PROPERTYGET VT_BOOL, (void *) & amp; The result, nullptr);
return result;
}

CodePudding user response:

Seems to use the serial port control? Mscomm. Ocx also need to be packaged & amp; Register

  • Related