Home > Back-end >  C identifier
C identifier

Time:09-27

CPen MyPen, * OldPen;
MyPen. CreatePen (PS_SOLID, 1, RGB (0,0,255));
OldPen=pDC - & gt; SelectObject (& amp; MyPen);
PDC - & gt; MoveTo (20, 30);
PDC - & gt; LineTo (200300);
PDC - & gt; SelectObject (OLdPen);
MyPen. DeleteObject ();

Compile error told me:
E: \ Test \ TestView CPP (75) : error C2065: 'OLdPen: undeclared identifier
'no OLdPen identifier statement?

CodePudding user response:

In front of the case, is behind the OldPen OldPen

CodePudding user response:

OLdPen - & gt; OldPen
  • Related