A MFC programming with spontaneous since the test code, defines the frame ID FFFFFFFF, display ID always received 1 FFFFFFFF, relevant code below Define the ID If (frameinfo ExternFlag==1)//extension frames { Sscanf (m_EditSendFrmID, "% x" 08, & amp; n); Frameinfo. ID=n; }
Read ID with program Len=VCI_Receive (DLG - & gt; M_devtype, DLG - & gt; M_devind, DLG - & gt; M_cannum frameinfo, 50200); . TMPSTR. The Format (" frame ID: % x "08, frameinfo [I] ID); STR +=TMPSTR; .
CodePudding user response:
How ID defined? Have more than 1 _ffff_ffff 32 bit?