I used a standard wiz-generated app with CEdit. In the View::OnDraw(CDC* pDC) I wrote the following: HDC hdc = CDC::GetSafeHdc();
This gives me error C2352, but noting is declared static.