Home > Software engineering > I write in VS2015 C use MFC, how always tip try reference deleted function?
I write in VS2015 C use MFC, how always tip try reference deleted function?
Time:11-12
I write c + + in VS2015 use MFC, how always tip try reference deleted function? Location: here the union Uip { Int ud_ip; Cstrings ub_ip; Cstrings uy_u; } udate; The source code is as follows: The union Uip { Int ud_ip; Cstrings ub_ip; Cstrings uy_u; } udate; Void CMFCApplication1Dlg: : OnBnClickedChange () { Int c=0; Int cc; Cstrings aa; Cstrings yy. Udate. Ud_ip=128; The switch (c) { Case 0: The UpdateData (true); Cc=udate. Ud_ip; Dip=cc; The UpdateData (false); break; Case 1: The UpdateData (true); Udate. Ub_ip="1000100"; Aa=udate. Ub_ip; BJP=aa; The UpdateData (false); break; Case 2: The UpdateData (true); Udate. Uy_u="FSFHSL"; Yy=udate. Uy_u; Yu=yy. The UpdateData (false); break; } c++; C %=3; }
CodePudding user response:
The union Uip { Int ud_ip; Cstrings ub_ip; Cstrings uy_u; } udate; This is to do?
CodePudding user response:
Union, it's not reasonable to use cstrings here Try to char array
CodePudding user response:
With the union to output different text box of the different types of values, is to know about the role of the union
CodePudding user response:
Put objects in the union is the first time in my life I see,
CodePudding user response:
"Depth explore c + + object model" "C + + the disassembly and reverse analysis reveal"