Click to See Complete Forum and Search --> : Getting a handle


Lighter
May 22nd, 1999, 10:32 AM
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.

Simon Rose
May 22nd, 1999, 11:42 AM
Hey,

Not sure, but you might need to do the following instead of what you are doing:

HDC hdc = pDC->GetSafeHdc();




Hope this helps,

Simon